vendredi 30 janvier 2015

undefined method `developers_path' , Ruby on rails


Vote count:

0




I get the below error when I try to invoke the page.


http://localhost:3000/developer/new


enter image description here


The content of the views/new.html.erb file is as follows:



<%= form_for(@developer) do |f| %>

<%= f.label :name %>
<%= f.text_field :name %>

<%= f.label :email %>
<%= f.email_field :email %>

<%= f.label :password %>
<%= f.password_field :password %>

<%= f.label :password_confirmation, "Confirmation" %>
<%= f.password_field :password_confirmation %>

<%= f.submit "Create Developer" %>
<% end %>


The contents of the developer_controller.rb are as follows:


class DeveloperController < ApplicationController def new @developer = Developer.new end end


The contents of the routes.rb file as below:


Rails.application.routes.draw do #get 'admin_controller/home'


get 'admin_controller/help'


#get 'create_developer' => 'admin_controller#new'


resources :developer


Any help would be appreciated. Thanks.



asked 1 min ago

Zack

44






undefined method `developers_path' , Ruby on rails

Aucun commentaire:

Enregistrer un commentaire