Ruby on Rails Thursday, November 29, 2012


On 29 November 2012 16:29, Colin Law <clanlaw@googlemail.com> wrote:
On 29 November 2012 10:55, sumit srivastava
<sumit.theinvincible@gmail.com> 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?


Please don't top post, it makes it difficult to follow the thread.
Post your replies inline in previous message.  Thanks.

Colin

>
>
> Regards
> Sumit Srivastava
>
> The power of imagination makes us infinite...
>
>
> On 29 November 2012 16:09, Colin Law <clanlaw@googlemail.com> wrote:
>>
>> On 29 November 2012 10:25, sumit srivastava
>> <sumit.theinvincible@gmail.com> wrote:
>> > Actually Jquery dataTables is being used to fetch the data and create
>> > the
>> > table.
>>
>> So the question is nothing to do with Rails then?
>>
>> Colin
>>
>> >
>> > Regards
>> > Sumit Srivastava
>> >
>> > The power of imagination makes us infinite...
>> >
>> >
>> >
>> > On 29 November 2012 15:48, Jordon Bedwell <envygeeks@gmail.com> wrote:
>> >>
>> >> On Thu, Nov 29, 2012 at 4:15 AM, Colin Law <clanlaw@googlemail.com>
>> >> wrote:
>> >> > 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.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Ruby on Rails: Talk" group.
>> >> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> rubyonrails-talk+unsubscribe@googlegroups.com.
>> >> For more options, visit https://groups.google.com/groups/opt_out.
>> >>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Ruby on Rails: Talk" group.
>> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > rubyonrails-talk+unsubscribe@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rubyonrails-talk+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment