Ruby on Rails Thursday, September 30, 2010

Parker Selbert wrote:
> Naif Dalbahi wrote:
>> I am so angry that the extension change was never mentioned in rails 3
>> documentation site... how are people supposed to know about that if the
>> development team doesn't announce that?!
>
> This isn't a new change at all, and especially not specific to Rails 3.
> The code you had inside of your js.erb template was RJS code, which will
> really limit you in places. The appropriate javascript equivalent inside
> of your js.erb template would be:
>
> $('#listing')
> .replace("<%= escape_javascript(render :partial => 'list', :locals =>
> { :articles => @articles }) %>");
>
>
> Note that is jQuery and not Prototype, but it applies regardless.
> Embrace the Javascript!

Thank you Fred & Parker... You guys are awesome!.. I guess I haven't
kept track of rails over the past years....
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment