Displaying 1 result from an estimated 1 matches for "postgrads0204".
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
...;field">
<%= f.label :college_id %><br />
<%= f.number_field :college_id %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
This is the error msg in full:
NoMethodError in Locations#new
Showing *C:/Postgrads0204/app/views/locations/_form.html.erb* where line *#1
* raised:
undefined method `model_name'' for NilClass:Class
Extracted source (around line *#1*):
1: <%= form_for(@location) do |f| %>
2: <% if @location.errors.any? %>
3: <div id="error_explanation">...