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
time_entries GET /time_entries(.:format) {:action=>"index", :controller=>"time_entries"} | |
POST /time_entries(.:format) {:action=>"create", :controller=>"time_entries"} | |
new_time_entry GET /time_entries/new(.:format) {:action=>"new", :controller=>"time_entries"} | |
edit_time_entry GET /time_entries/:id/edit(.:format) {:action=>"edit", :controller=>"time_entries"} | |
time_entry GET /time_entries/:id(.:format) {:action=>"show", :controller=>"time_entries"} | |
PUT /time_entries/:id(.:format) {:action=>"update", :controller=>"time_entries"} | |
DELETE /time_entries/:id(.:format) {:action=>"destroy", :controller=>"time_entries"} |
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
time_entries GET /time(.:format) {:action=>"index", :controller=>"time_entries"} | |
POST /time(.:format) {:action=>"create", :controller=>"time_entries"} | |
new_time_entry GET /time/new(.:format) {:action=>"new", :controller=>"time_entries"} | |
edit_time_entry GET /time/:id/edit(.:format) {:action=>"edit", :controller=>"time_entries"} | |
time_entry GET /time/:id(.:format) {:action=>"show", :controller=>"time_entries"} | |
PUT /time/:id(.:format) {:action=>"update", :controller=>"time_entries"} | |
DELETE /time/:id(.:format) {:action=>"destroy", :controller=>"time_entries"} |
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
named_scope :archived, :conditions => ["archived_at IS NOT NULL AND archived_at <= ?", Time.now.utc] | |
named_scope :not_archived, :conditions => ["archived_at IS NULL OR archived_at > ?", Time.now.utc] |
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
named_scope :archived, lambda { { :conditions => ["archived_at IS NOT NULL AND archived_at <= ?", Time.now.utc] } } | |
named_scope :not_archived, lambda { { :conditions => ["archived_at IS NULL OR archived_at > ?", Time.now.utc] } } |
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
# Rails logs: | |
/home/myuser/apps/myapp/shared/log/*.log { | |
daily | |
missingok | |
rotate 5 | |
compress | |
delaycompress | |
notifempty | |
copytruncate | |
create 0666 myuser myuser |
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
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.singular(/ess$/i, 'ess') | |
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
>> 'business'.singularize | |
=> "busines" |
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
rake cucumber # Alias for cucumber:ok | |
rake cucumber:all # Run all features | |
rake cucumber:ok # Run features that should pass | |
rake cucumber:wip # Run features that are being worked on |
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
@ok | |
Scenario: Successful login | |
Given there is an account | |
And I am on the login page | |
When I fill in "user_session[email]" with a valid email | |
And I fill in "user_session[password]" with "mittens" | |
And I press "Log in" | |
Then I should be on the dashboard page |
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
/!\ FAILSAFE /!\ 09/29/09 03:21 | |
Status: 500 Internal Server Error | |
invalid byte sequence in US-ASCII |
OlderNewer