Commit 8ceb8f9f
Changed files (5)
app
views
creations
layouts
spec
controllers
app/views/creations/index.html.erb
@@ -15,7 +15,7 @@
<strong>Make</strong> cakes, <strong>sell</strong> cakes, or just <strong>love</strong> eating them? You've come to the right place!
<strong>CakeSide</strong> is a free site to <strong>share</strong> your cake <strong>creations</strong> and <strong>ideas</strong> with other cake fanatics like yourself!</p><br/>
<p style="text-align: center;">
- Get your cakes featured on this page <%= link_to "Sign Up For Free!", new_user_session_path, class: "btn btn-primary btn-large" %> or <%= link_to "sign in", new_user_session_path %>
+ Get your cakes featured on this page <%= link_to "Sign Up For Free!", new_session_path, class: "btn btn-primary btn-large" %> or <%= link_to "sign in", new_session_path %>
</p>
</div>
</div>
app/views/creations/show.html.erb
@@ -23,7 +23,7 @@
<%= button_to "ADD TO FAVORITES", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary', "data-event" => 'click-add-to-favorites' %>
<% end %>
<% else %>
- <p><%= link_to "SIGN UP FOR FREE", new_user_session_path, :class => "btn btn-primary mix-link", "data-event" => 'click-sign-up' %></p>
+ <p><%= link_to "SIGN UP FOR FREE", new_session_path, :class => "btn btn-primary mix-link", "data-event" => 'click-sign-up' %></p>
<% end %>
</div>
<div class="span3">
app/views/layouts/_header.html.erb
@@ -11,7 +11,7 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Creations<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
- <%= link_to current_user ? my_root_path(anchor: 'cakes/new') : new_user_session_path do %>
+ <%= link_to current_user ? my_root_path(anchor: 'cakes/new') : new_session_path do %>
<i class="icon-edit icon-large"></i> Add Creation
<% end %>
</li>
@@ -69,7 +69,7 @@
</ul>
<ul class="nav pull-right">
<li>
- <%= link_to current_user ? my_root_path(anchor: 'cakes/new') : new_user_session_path do %>
+ <%= link_to current_user ? my_root_path(anchor: 'cakes/new') : new_session_path do %>
<i class="icon-edit icon-large"></i> Add Creation
<% end %>
</li>
@@ -84,7 +84,7 @@
<% end %>
</li>
<% else %>
- <li> <%= link_to "Sign In", new_user_session_path %> </li>
+ <li> <%= link_to "Sign In", new_session_path %> </li>
<% end %>
</ul>
</div>
spec/controllers/my/cakes_controller_spec.rb
@@ -16,7 +16,7 @@ describe My::CakesController do
context "when not logged in" do
it "redirects you to the home page" do
get :index
- response.should redirect_to(new_user_session_path)
+ response.should redirect_to(new_session_path)
end
end
end
spec/controllers/my/passwords_controller_spec.rb
@@ -7,7 +7,7 @@ describe My::PasswordsController do
it "should redirect you to the login page" do
put :update, :id => user.id
- response.should redirect_to(new_user_session_path)
+ response.should redirect_to(new_session_path)
end
end