Itβs very difficult for me to understand the routes, and I hope someone can help me.
Here is my user controller
class SettingsController < ApplicationController before_filter :authenticate_user! def edit @user = current_user end def update @user = User.find(current_user.id) if @user.update_attributes(params[:user])
and I have the settings of the /edit.html.erb file and my link
<li><%= link_to('Settings', edit_settings_path) %></li>
Route
get "settings/edit"
not working for this because then i get
undefined local variable or method `edit_settings_path' for #<#<Class:0x00000001814ad8>:0x00000002b40a80>
Which route do I need to give? I can not understand. If I put "/ settings / edit" instead of the path that it messed up as soon as I am on another resource page, because the name of the resource is placed BEFORE the settings / editing
thanks
source share