launchscout / nku

NKU Class Spring
5 stars 14 forks source link

How to initialize variable for link_to #50

Closed nemesis51 closed 10 years ago

nemesis51 commented 10 years ago

error

I have a login.html.erb in the views/students folder not sure why it works for 'new' and not the 'login'.

I also defined the login method in the controller but didn't help. so I am missing something still.

C-Khalid commented 10 years ago

try to add this line to the route file get 'login', to: 'sessions#create', as: :login and in the index <%= link_to "login", login_path %>

jaimerump commented 10 years ago

@mekdif has it, you don't have a route defined. You can't use the path helper without a route defined.

mitchlloyd commented 10 years ago

@nemesis51 Are you still working on this issue? If not could you close this one down?