Search code examples
ruby-on-railsruby-on-rails-3ruby-on-rails-3.1ruby-on-rails-pluginsformtastic

Formtastic Does not show the form


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


Solution

  • This:

    %p -semantic_form_for 
    

    Should be changed to this:

    %p =semantic_form_for
    

    Notice the "=".