@branch = Branch.new (params[:branch])
branch_back = @branch.*branch*
in the model have one *branch.rb*
In the view have one branches folder, also have the branch.html.erb in that
<%= form_for(@branch) do |f| %>
match 'branch' => 'branches#branch'
*i am getting this following error*
*NoMethodError in BranchesController#branch*
*You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each*
What am I doing wrong?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/anCewQjZXw8J.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.