Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table id goes nuts #18

Open
nexon opened this issue Mar 17, 2013 · 6 comments
Open

Table id goes nuts #18

nexon opened this issue Mar 17, 2013 · 6 comments

Comments

@nexon
Copy link

nexon commented Mar 17, 2013

When i have two or more tables rendered with table_cloth with different id tables. all of the tables get the same id.

@bobbytables
Copy link
Owner

Are you using a table class or the simple_table_for [] do |table| syntax?

@nexon
Copy link
Author

nexon commented Mar 18, 2013

In both case occurs the problem.

Alberto Lagos Toro
Enviado con Sparrow (http://www.sparrowmailapp.com/?sig)

El lunes, 18 de marzo de 2013 a las 16:07, Robert Ross escribió:

Are you using a table class or the simple_table_for [] do |table| syntax?


Reply to this email directly or view it on GitHub (#18 (comment)).

@bobbytables
Copy link
Owner

@nexon - Sorry for the late reply on this, but I think I understand now.

Are you talking about the <table id=""> attribute?

@nexon
Copy link
Author

nexon commented Apr 29, 2013

@bobbytables don't worry. Yes, i talking about the <table id=""> for me, appears to be a problems with contexts views.

@idrinkpabst
Copy link

As far as I can see, the only way to set the table id is in the tables/model_table.rb file where you can add config.table.id = 'my_unique_id', but then yes each table made with that template will have the same id. Wouldn't it make sense to allow overriding the id in the view? Something like simple_form does
simple_table_for(@my_model, with: ModelTable, html: { id: 'my_unique_id' })

@bobbytables
Copy link
Owner

@idrinkpabst yeah this has been discussed, your approach was what was talked about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants