i’m using formtastic i have the following
before_filter :get_client, :except => [:index,:create]
private
def get_client
@client = params[:id].present? ? Client.find(params[:id]) : Client.new
end
and an action
def new
end
the view is as follows
%h1 New Client
%p
-semantic_form_for [:admin,@client] do |f|
=f.inputs
=f.buttons
and i have ran the migration through rake db:migrate
The form dose not show
thanks
This:
Should be changed to this:
Notice the “=”.