search for: projects_path

Displaying 2 results from an estimated 2 matches for "projects_path".

Did you mean: project_path
2007 Oct 17
2
Complex Forms (From Railscasts.com)
...example of the way they suggest to go about it: # projects_controller.rb def new @project = Project.new 3.times { @project.tasks.build } end def create @project = Project.new(params[:project]) if @project.save flash[:notice] = "Successfully created project." redirect_to projects_path else render :action => ''new'' end end # models/project.rb def task_attributes=(task_attributes) task_attributes.each do |attributes| tasks.build(attributes) end end VIEW <!-- new.rhtml --> <% form_for :project, :url => projects_path do |f| %> &...
2007 Dec 09
2
What to test for views?
When you guys test views, what are you testing? Do you just test that all the form fields exist in a new.rhtml, that all form fields are filled in an edit.rhtml, and that all the proper columns are are shown in a index.rhtml page, or is there something more that should be tested? Thanks. -- Posted via http://www.ruby-forum.com/.