RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mohsam
I m very new to ruby on rails, so can you help me.
I m getting the following error
NoMethodError in Users#new undefined method `simple_form_for' for #<#<Class:0x5ae0f40>:0x463f218>
this is my new form
<%= simple_form_for @user do |f| %> <%= f.input :service_number %> <%= f.input :password %> <%= f.button :submit %> <% end %>
this is my user controller
class UsersController < ApplicationController def index end def new @user = User.new end def create @user = User.new(params[:user]) if @user.save session[:user_id] = @user.id redirect_to root_url, notice: "Thank you for signing up!" else render "new" end end end
I m very new to ruby on rails, so can you help me.
I m getting the following error
this is my new form
this is my user controller