search for: new_user_path

Displaying 7 results from an estimated 7 matches for "new_user_path".

2009 Mar 11
3
[rspec, rails] Restful Routes in controller specs
Hi, how is it possible that I can use the restful routes helpers (e.g. new_user_path) in controller specs? I browsed the source code but I couldn''t find the magic. I''m just curious and would appreciate any hint... thanks Andi
2008 Jan 17
4
multiple views, and some routers
...how do i call the list.html.erb page? because, when i type /users/list i get an error because it''s trying to search for an id = list (?) what would be the correct way to map this on routers.rb ? i have some doubts about the users_path, users_url, when scaffold generates the page he calls new_user_path for example. I didn''t understand how that is possible. If i creat that list.html.erb page on the users folder, will i be able to call an list_user_path ? Sorry if my questions look a little too beginner, maybe i missundertood something, and if someone can lead me to the right way, I'&...
2010 Dec 02
8
CanCan issue when being very specific
...nd can :create, User --------------------------------------------- HERE IS APP/VIEWS/USERS/INDEX.HTML.ERB --------------------------------------------- <% if can? :create, @user %> <div style="clear:both;padding-top:20px;"><%= link_to ''New User'', new_user_path %></div> <% end %> --------------------------------------------- -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JY...
2007 Mar 14
11
path vs. url
When using named RESTful routes, when should one use the generated ..._path helpers, and when the ..._url helpers? Say I did this in routes.rb: map.resources :users Where should I use users_path, new_user_path, etc., and where should I use users_url, new_user_url...? Thanks! Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/J...
2010 Jul 13
1
NoMethodError in UsersController#show
...mber_me">Remember me:</label> <%= check_box_tag ''remember_me'' %></p> <p><%= submit_tag ''Log in'', :class => "btn", :id => "login_btn" %> <%= link_to "Sign Up", new_user_path %></p> <% end %> </div> </fieldset> Here are the relevant controllers and models: Users_Controller: def show #@user = User.find(params[:id]) @user = User.find_by_login(params[:login]) #@feed_items = @user.feed @feed_items = @user.feed end...
2010 Jan 29
3
testing controllers using cucumber
Hello, Is there any way to test controllers using cucumber. I was doing it with rspec but since cucumber''s description is good how can i proceed testing it with cucumber? For e.g. I have a scenario of user creation like Feature: User Scenarios Scenario: Successfull creation of user Given a new user When the user fill all the mandatory details Then that user should get
2008 Jun 30
1
Help with form_for
...t;/p> <%= f.password_field :password %> <%= submit_tag ''Go!''%> <p> <label for=''without_account_yet''>Register</label> <%= link_to ''New user?'', new_user_path %> </p> <% end %> </fieldset> </div> Rendering it, the server gives this error, but I don''t know what it means. Any idea? wrong argument type FalseClass (expected Proc) Extracted source (around line #4): 1: <div id="user_manage...