0
votes

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

1
I believe there is something wrong with formtastic and haml because when i used erb instead it worked just fine - Wael Said Emara

1 Answers

1
votes

This:

%p -semantic_form_for 

Should be changed to this:

%p =semantic_form_for

Notice the "=".