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