The table is populated through controller. I need to add a select box to
every Email cell. How to add this?
The Rails Guide on Form Helpers shows you how to make select boxes.
Remember that for valid html the entire table must lie within the
form, or each cell must contain its own form.
The Rails Guide on Form Helpers shows you how to make select boxes.
Remember that for valid html the entire table must lie within the
form, or each cell must contain its own form.
Aren’t tables are violation of the HTML spec anyways? I thought it was
only div,section,span that could be inside of forms i could be wrong
about that but I could have swore reading that somewhere in the specs
for HTML.
The Rails Guide on Form Helpers shows you how to make select boxes.
Remember that for valid html the entire table must lie within the
form, or each cell must contain its own form.
Aren’t tables are violation of the HTML spec anyways? I thought it was
only div,section,span that could be inside of forms i could be wrong
about that but I could have swore reading that somewhere in the specs
for HTML.
I think you are wrong there, I am sure table is valid inside a form.
I have just tried an example in the w3c html validator and it was
happy with it.
I need to add a functionality to a code someone else wrote. Just found
out
that, the dataTables jquery is just being used to sort and paginate the
table. But the table is actually populated through controller.
On 29 November 2012 10:55, sumit srivastava [email protected] wrote:
I need to add a functionality to a code someone else wrote. Just found out
that, the dataTables jquery is just being used to sort and paginate the
table. But the table is actually populated through controller.
So what do you not know how to do? You have read the guide I suggested
I hope.
Please don’t top post, it makes it difficult to follow the thread.
Post your replies inline in previous message. Thanks.
On 29 November 2012 10:55, sumit srivastava [email protected] wrote:
I need to add a functionality to a code someone else wrote. Just found
out
that, the dataTables jquery is just being used to sort and paginate the
table. But the table is actually populated through controller.
So what do you not know how to do? You have read the guide I suggested I
hope.
There is nothing in the view defined to add the form with select box.
The
data is coming from the controller directly as json. So how to add a
select
box from the controller to the table?
On 29 November 2012 11:04, sumit srivastava [email protected] wrote:
So what do you not know how to do? You have read the guide I suggested I
hope.
There is nothing in the view defined to add the form with select box. The
data is coming from the controller directly as json. So how to add a select
box from the controller to the table?
If you want a select box then you have to do that in the view.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.