- Amazon is the company we use for hosting and the cost depends completely on your traffic and storage needs
- You only pay for what you use (We average around $60 per month)
- We can give them our monthly costs as an example; If they can tell us the traffic they expect we can do an estimate for them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "successfully logs out" do | |
visit root_path | |
click_link "Log Out" | |
visit login_path | |
save_and_open_page | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionsController < ApplicationController | |
def new | |
end | |
def create | |
user = login(params[:email], params[:password], params[:remember_me]) | |
if user | |
redirect_back_or_to root_url, :notice => "Logged in!" | |
else | |
flash.now.alert = "Email or password was invalid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% provide(:title, 'Log In') %> | |
<h1>Log In</h1> | |
<%= form_tag sessions_path do %> | |
<fieldset> | |
<%= label_tag :email %> | |
<%= text_field_tag :email, params[:email] %> | |
</fieldset> | |
<fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "successfully routes to the login page" do | |
visit login_path | |
current_path.should == "/login" | |
print page.html | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="search_results"> | |
<%- if @results.empty? %> | |
<p>Sorry - there were no results for "<strong><%= params[:search] %></strong>".</p> | |
<p><%= link_to "Return to your homepage", root_path %>.</p> | |
<%- end %> | |
<% @results.each do |result| %> | |
<% if result.kind_of?(PartnerPage) %> | |
<h2><%= link_to result.title, partner_path(result) %></h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe "search/index.html.erb" do | |
context "when search results are empty" do | |
before do | |
assign(:results, double('results').as_null_object) | |
controller.params[:search] = "user query" | |
template.stub(:paginate).and_return(nil) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://s3.amazonaws.com/achievenext-dev-heroku-backups/events/photos/small/107.jpg?1323792591 |
- Go to http://sorella.heroku.com/refinery until we launch the site. After launching it will be at the url http://shopsorellamacon.com/refinery login with your user and pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="http://player.vimeo.com/video/25762842?title=0&byline=0&portrait=0&color=366c96" width="440" height="248" frameborder="0"></iframe> |