Skip to content

Instantly share code, notes, and snippets.

<h2>Sign up</h2>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :name %><br />
<%= f.name_field :name, autofocus: true %>
</div>
No route matches [GET] "/users/new"
Rails.root: /Users/andyarmstrong/Documents/Personal/andyhelloworldruby
Application Trace | Framework Trace | Full Trace
Routes
Routes match in priority from top to bottom
Helper HTTP Verb Path Controller#Action
devise_for :users, path: "users", path_names: { sign_in: 'login', sign_out: 'logout', password: 'secret', confirmation: 'verification', unlock: 'unblock', registration: 'register', sign_up: 'new' }
Paperclip.options[:command_path] = "/usr/local/bin/"
PAPERCLIP_STORAGE_OPTS = {
:styles => { :thumb => '100x100#', :medium => '450x300>', :large => '600x400>'},
:convert_options => { :all => '-quality 100' },
:processor => [ :cropper ]
}
rake aborted!
TypeError: wrong argument type File (expected String)
/Users/andyarmstrong/Documents/Personal/andyhelloworldruby/db/seeds.rb:118:in `<top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
SyntaxError: /Users/andyarmstrong/Documents/Personal/andyhelloworldruby/db/seeds.rb:117: syntax error, unexpected =>
Event.create({className: => 'Word tuition',companyLogo: ...
^
/Users/andyarmstrong/Documents/Personal/andyhelloworldruby/db/seeds.rb:117: syntax error, unexpected ',', expecting end-of-input
...({className: => 'Word tuition',companyLogo: => File.new(Rail...
... ^
Tasks: TOP => db:seed
(See full trace by running task with --trace)