search for: user_profile_path

Displaying 2 results from an estimated 2 matches for "user_profile_path".

2013 Apr 12
0
Rails Log user in after view rendered
...t;/strong>: </div> <div class="nine columns"> <%= t("apply.create.labels.emailed_password_html", :link => mail_to(@user.personal_info.e_mail))%> <%= link_to(t("apply.create.labels.choose_password"), user_profile_path) %> </div> </div> <!-- Try to Sign in User --> <% priv_sign_in %> <% end %> This code is because. If the user applies the @user info is filled in but he can only be logged in after this part of the view is generated. In my...
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
...to (.+)$/ do |page_name| # # step definition in webrat_steps.rb # def path_to(page_name) case page_name when /the homepage/ ''/'' # Add more mappings here. # Here is a more fancy example: # # when /^(.*)''s profile page$/i # user_profile_path(User.find_by_login($1)) else raise "Can''t find mapping from \"#{page_name}\" to a path.\n" + "Now, go and add a mapping in #{__FILE__}" end end end World(NavigationHelpers)[/code] This is not complete however. If I run rake features at...