This file contains 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
(\bhttp://[a-z0-9\.\-_:~@##%&/?+=;]+) |
This file contains 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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 |
This file contains 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
module ActionDispatch::Routing | |
class Mapper | |
def engine_routing | |
#define your routes here. You can use all the normal route DSL stuff | |
resources :dashboard | |
end | |
end | |
end | |
module OilChange |
This file contains 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
Hominid::APIError in InvitationsController#create | |
<214> foo@bar.com is already subscribed to list LIST NAME. <a href="http://domain.us2.list-manage.com/subscribe/send-email?u=521Y29t">Click here to update your profile.</a> |
This file contains 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 'omniauth/openid' | |
require 'openid/store/filesystem' | |
module OmniAuth | |
class Form | |
def shard_field(name) | |
@html << "\n<select id='#{name}' name='#{name}'>" | |
@html << "\n<option value='5' selected='selected'>Tale 5: Amunet</option>" | |
@html << "\n<option value='5b'>Tale 5: Bastet</option>" | |
@html << "\n<option value='6'>Tale 6</option>" |
This file contains 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 File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require(*Rails.groups(:assets => %w(development test))) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end |
This file contains 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
#employees_index.nivoSlider | |
- @employees.each do |employee| | |
= image_tag "employees/#{employee.image}", :height => 150, :width => 120, :title => '#htmlcaption' | |
- @employees.each do |employee| | |
#htmlcaption.nivo-html-caption | |
#employees_index_info | |
%ul | |
%li= employee.name | |
%li= employee.title | |
%li= employee.email |
This file contains 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 'rubygems' | |
require 'spork' | |
Spork.prefork do | |
ENV["RAILS_ENV"] ||= "cucumber" | |
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
require 'cucumber' | |
require 'cucumber/rails' | |
require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support |
This file contains 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
Feature: Signing in | |
In order to use the site | |
As a user | |
I want to be able to sign in | |
Scenario: Signing in via confirmation | |
Given there are the following users: | |
| email | password | unconfirmed | | |
| user@ticketee.com | password | true | | |
And "user@ticketee.com" opens the email with subject "Confirmation instructions" |
This file contains 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
<%= form_for :vehicle_listing_images, :html => { :multipart => true } do |f| %> | |
<%= hidden_field_tag :listing_id, @listing_id %> | |
<div id="file_upload_area"> | |
</div> | |
<% end %> | |
<div id="image-container"> | |
<button id="primary_photo" class="btn right"><strong>Select Primary photo</strong></button> | |
<input type="hidden" name="vehicle_listing[primary_photo_id]" value="<%= @listing.primary_photo_id %>" id="primary_photo_id" /> | |
<ul id="images"> |