search for: activities_path

Displaying 1 result from an estimated 1 matches for "activities_path".

2012 Apr 14
7
undefined method `model_name' for NilClass:Class
...end end def new @activity = Activity.new respond_to do |format| format.html # new.html.erb format.json { render json: @activity } end end View: <h1>New Activity</h1> <%= render ''form'' %> <%= link_to ''Back'', activities_path %> and partial: <%= form_for(@activity) do |f| %> <% if @activity.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@activity.errors.count, "error") %> prohibited this activity from being saved:</h2> <ul&g...