Ruby on Rails Thursday, September 30, 2010

Frederick Cheung wrote:
> On Sep 30, 10:18�am, Naif Dalbahi <li...@ruby-forum.com> wrote:
>> my index.js.erb has:
>> [code]
>> page.replace_html 'listing', partial => 'list', :locals => { :articles
>> => @articles }
>> [/code]
>>
>> the content of the js.erb template is what is returned in the response!
>> why is this happening???
>
> Because the above is not an erb template - or rather it contains no
> erb tags (<%= and so on).
> I believe the 'correct' name for rjs templates these days is js.rjs.
>
> Fred

Thank you very, very much Fred. You saved my day man!

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?!

Thank you again Fred,, very much appreciated.
--
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