forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Build the app
ultrasaurus edited this page Feb 1, 2012
·
9 revisions
- Run a test
rake spec
spec/requests/user_spec.rb
describe "existing user", :js => true do
it "should see sign in link on the home page" do visit '/' page.should have_link("Sign In") end
it "should see be able to sign in from the home page" do visit '/' click_link("Sign In") current_path.should == new_user_session_path end
-
- create a new directory "menu" under "views/devise/menu/"
- create a new file, call it: "views/devise/menu/_login_items.html.erb"
file content:
<% if user_signed_in? %>
as described in: https://github.com/plataformatec/devise/wiki/How-To:-Add-sign_in,-sign_out,-and-sign_up-links-to-your-layout-template
-
Add to the file: views/layout/application.html.erb the following content: Add it inside the body tag, right at the top of the tag: <%= render :partial => 'devise/menu/login_items' %>
-
Run another test
rake spec
Important Links!
- Wiki Home
- Pivotal Tracker (Story Backlog)
- Readme
- Contributor Guidelines
- Git guide
- Bridge Troll Google Group
Other Things