search for: new_project_path

Displaying 3 results from an estimated 3 matches for "new_project_path".

2010 Jan 08
1
problem using build with has_many :through relationship
...irb_id belongs_to :project # foreign key - project_id end - reviews_controller - class ReviewsController < ApplicationController def create @review = Project.reviews.build( :irb_id => params[:id] ) if @review.save flash[:notice] = "IRB added." redirect_to new_project_path else flash[:error] = "Unable to add IRB." redirect_to new_project_path end end def destroy @review = Project.reviews.find(params[:id]) @review.destroy flash[:notice] = "IRB Removed." redirect_to new_project_path end end Here''...
2011 Mar 21
1
Getting user session object in cucumber
...page_name| current_path = URI.parse(current_url).path if current_path.respond_to? :should current_path.should == path_to(page_name) else assert_equal path_to(page_name), current_path end end When /^user create a project with name "([^"]*)"$/ do |project_name| visit new_project_path fill_in("project_name", :with=>project_name) click_button("Add Property") end " I know that I am missing something but as I am learner I am not able to figure out. Can anyone tell me How can I solve this? Please it is very urgent. Thanks, Mike -- Posted via http:/...
2010 Dec 03
2
Rails 3 console ...
In the console to check my paths, I used to write ( In Rails 2) include ActionController::UrlWriter then I could test my paths : new_project_path , .... but now in Rails 3 include ActionController::UrlWriter gives an error NameError: uninitialized constant ActionController::UrlWriter sure something changed, any other additional include needed ? thanks fyh -- You received this message because you are subscribed to the Google Groups &quot...