Displaying 1 result from an estimated 1 matches for "forkids".
Did you mean:
forbids
2012 Apr 14
7
undefined method `model_name' for NilClass:Class
Hi guys,
I just started using Ruby on Rails. After implementing the RoR blog
tutorial I started with my own data model.
Sadly I am not able to get my create page running.
Model:
class Activity < ActiveRecord::Base
validates :activity, :presence => true
validates :forKids, :presence => true
validates :start_date, :presence => true
end
Controller:
class ActivitiesController < ApplicationController
def index
@activities = Activity.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @activities }
end...