pepe wrote in post #950138:
>> Anyway, any solution requiring js.erb is, almost by definition, "doing
>> it all wrong". js.erb should never be necessary in a well-written
>> project: you shouldn't be dynamically generating source code.
>
> What do you mean by "dynamically generating source code" here? Are you
> saying that going for a partial to the server using Ajax is the wrong
> thing to do?

No, absolutely not.  I am saying that dynamically generating JS by means 
of ERb is a design problem.  Receiving a partial from an Ajax call is 
fine.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to