Skip to content

Instantly share code, notes, and snippets.

@system123
Created May 25, 2013 08:59
Show Gist options
  • Save system123/5648443 to your computer and use it in GitHub Desktop.
Save system123/5648443 to your computer and use it in GitHub Desktop.
Devise Error
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<div><%= f.label :email %>
<%= f.email_field :email, :style => "margin-bottom: 15px" %></div>
<div><%= f.label :password %>
<%= f.password_field :password , :style => "margin-bottom: 15px" %></div>
<% if devise_mapping.rememberable? %>
<div><%= f.check_box :remember_me, :style => "float: left; margin-right: 10px" %>
<%= f.label :remember_me, :class => "string optional" %></div>
<% end %>
<div><%= f.submit "Sign in", :class => "btn btn-primary", :style => "clear: left; width: #{@btn_width}; height: 32px; font-size: 13px;" %></div>
<% end %>
Showing /Volumes/Hades/Websites/Raisen/app/views/devise/sessions/_form.html.erb where line #7 raised:
wrong number of arguments (3 for 2)
Extracted source (around line #7):
4
5
6
7
8
9
10
end
%>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<div><%= f.label :email %>
<%= f.email_field :email, :style => "margin-bottom: 15px" %></div>
Trace of template inclusion: app/views/devise/sessions/new.html.erb
Rails.root: /Volumes/Hades/Websites/Raisen
Application Trace | Framework Trace | Full Trace
app/views/devise/sessions/_form.html.erb:7:in `_app_views_devise_sessions__form_html_erb__317816936233481467_70108264206020'
app/views/devise/sessions/new.html.erb:3:in `_app_views_devise_sessions_new_html_erb___2158182548591158396_70108296662180'
Raisen::Application.routes.draw do
devise_for :users, :controllers => {:registrations => "registrations"}, :path_prefix => 'd'
resources :users, only: :index
resources :accounts, :only => [:index, :new, :create, :destroy]
root :to => 'home#index'
end
@MoonLover
Copy link

Hello,Are you a foreigner?Where are you from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment