On Tue, Feb 17, 2009 at 1:46 AM, Eduardo Yáñez Parareda <
[email protected]> wrote:

>
> I can answer myself. I didn't notice that in Rails 2.2 I need to make
> changes in the controller's action to respond to JS.
>
>  def new
>    @project = Project.new
>    @states = ProjectStatus.all.collect {|s| [s.name, s.name]}
>    respond_to do |format|
>      format.html # new.html.erb
>      format.js  # new.js.rjs <--------------------------------- HERE!
>    end
>  end
>
> This is a thing I don't like with new releases of Rails, they always
> broke backwards compatibility...


Hi, you should never upgrade without reading the release notes and how it
may effect your current application.

Good luck,

-Conrad

--~--~---------~--~----~------------~-------~--~----~
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