[Rails] Re: div_for and RJS

2009-05-08 Thread Freddy Andersen

The class will not work for a rjs call.. html class elements are not
unique by design so that is not a good idea anywho...

Here is a good description for div_for
http://apidock.com/rails/ActionView/Helpers/RecordTagHelper/div_for

It's just a way to create a div that has something todo with the
record that you have. So if you have a @user object with id of 1 you
would get id="user_1" for the div.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: div_for and RJS

2009-05-08 Thread Noel Miller

the code is here
http://pastie.org/472556
and here
http://pastie.org/472563

sorry about the extra bits

-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---