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
When I go to the home page # features/step_definitions/user_views_corn.rb:8 | |
No route matches {:action=>"show", :controller=>"prices"} (ActionView::Template::Error) | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:465:in `raise_routing_error' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:455:in `generate' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:494:in `generate' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:519:in `url_for' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/url_for.rb:147:in `url_for' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_view/helpers/url_helper.rb:107:in `url_for' | |
/Users/sam/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_ |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.3' | |
#gem 'sqlite3' | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'uglifier', '>= 1.0.3' | |
end | |
gem 'jquery-rails' | |
gem "haml", ">= 3.1.4" |
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 DatafeedsController < ApplicationController | |
API_KEY = 'spoda02ca2462de590075258f7b0752d46169c9e0c162762ccd8118ac486c503e8ce' | |
# Parses Foxycart datafeed v060 | |
# see http://wiki.foxycart.com/docs/datafeed for details | |
def create | |
require 'ruby-rc4' | |
require 'nokogiri' |
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 DatafeedsController < ApplicationController | |
API_KEY = 'my encrypted key is here' | |
# Parses Foxycart datafeed v060 | |
# see http://wiki.foxycart.com/docs/datafeed for details | |
def create | |
require 'ruby-rc4' | |
require 'nokogiri' |
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 DatafeedsController < ApplicationController | |
API_KEY = 'my very long encrypted key here' | |
# Parses Foxycart datafeed v060 | |
# see http://wiki.foxycart.com/docs/datafeed for details | |
def create | |
#require 'rc4' | |
require 'nokogiri' |
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
<foxydata> | |
<datafeed_version>XML FoxyCart Version 0.6</datafeed_version> | |
<transactions> | |
<transaction> | |
<id>616</id> | |
<transaction_date>2007-05-04 20:53:57</transaction_date> | |
<customer_id>122</customer_id> | |
<customer_first_name>JohnSam</customer_first_name> |
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
<? | |
/** | |
* FoxyCart Test XML Generator | |
* | |
* @link http://wiki.foxycart.com/integration:misc:test_xml_post | |
* @version 0.6a | |
*/ | |
/* | |
DESCRIPTION: ================================================================= | |
The purpose of this file is to help you set up and debug your FoxyCart XML DataFeed scripts. |
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
NoMethodError in Home#events | |
Showing /Users/sam/apps/tickat/app/views/home/events.html.erb where line #21 raised: | |
undefined method `event_path' for #<#<Class:0x000001016f4b20>:0x00000100a99e20> | |
Extracted source (around line #21): | |
18: <tr> | |
19: <td><%= event.title %></td> | |
20: <!-- <td><%= event.venue.name %></td> --> |
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
be rake routes | |
WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3 | |
orders GET /orders(.:format) orders#index | |
POST /orders(.:format) orders#create | |
new_order GET /orders/new(.:format) orders#new | |
edit_order GET /orders/:id/edit(.:format) orders#edit | |
order GET /orders/:id(.:format) orders#show | |
PUT /orders/:id(.:format) orders#update | |
DELETE /orders/:id(.:format) orders#destroy | |
new_user_session GET /users/sign_in(.:format) devise/sessions#new |
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
~ (master)(*)$ irb | |
>> | |
>> class Foo | |
>> attr_accessor :read_write | |
>> attr_reader :readonly | |
>> attr_writer :writeable | |
>> | |
?> def initialize(read_write, readonly, writeable) | |
>> @read_write = read_write | |
>> @readonly = readonly |