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
=> Booting WEBrick | |
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Exiting | |
/Users/rafaeloliveira/.rvm/gems/ruby-1.8.7-p352@rails310/gems/activerecord-3.1.0/lib/active_record/base.rb:1082:in `method_missing': undefined local variable or method `acts_as_messageable' for #<Class:0x108d1d428> (NameError) | |
from /Users/rafaeloliveira/Development/Rails/mural/hollow/app/models/user.rb:22 | |
from /Users/rafaeloliveira/.rvm/gems/ruby-1.8.7-p352@rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:456:in `load' | |
from /Users/rafaeloliveira/.rvm/gems/ruby-1.8.7-p352@rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:456:in `load_file' | |
from /Users/rafaeloliveira/.rvm/gems/ruby-1.8.7-p352@rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in' |
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
production: | |
app: xxxxxxxxx | |
stack: bamboo-ree-1.8.7 | |
config: | |
BUNDLE_WITHOUT: "development:test" | |
GOOGLE_ANALYTICS: "xxxxxxxxxxxxxx" | |
PUSHER_SOCKET_URL: "xxxxxxxxxxxxxx" | |
PUSHER_URL: "xxxxxxxxxxxxxx" | |
RACK_ENV: "production" | |
WEBSOLR_URL: "xxxxxxxxxxxxxx" |
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
[ | |
["/Users/rafaeloliveira/Development/Rails/sharespot-production/app/assets/stylesheets", "/Users/rafaeloliveira/Development/Rails/sharespot-production/public/assets"], | |
["/Users/rafaeloliveira/.rvm/gems/ruby-1.9.2-p290@r310totem-simpleforms/gems/compass-0.12.1/frameworks/blueprint/stylesheets", "/Users/rafaeloliveira/Development/Rails/sharespot-production/public/assets/blueprint"], | |
["/Users/rafaeloliveira/.rvm/gems/ruby-1.9.2-p290@r310totem-simpleforms/gems/compass-0.12.1/frameworks/compass/stylesheets", "/Users/rafaeloliveira/Development/Rails/sharespot-production/public/assets/compass"] | |
] |
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
@users = User.where(:page_owner => true).order("updated_at DESC").limit(100) if params[:page_owner] | |
@users = User.where(:page_owner_request => true}.order("updated_at DESC").limit(100) if params[:page_owner_request] | |
@users = User.where(:deleted => true}.order("updated_at DESC").limit(100) if params[:deleted] | |
@users = @users || User.all |
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
new_photos.each do |p| | |
Photo.create(:filename => p, :version => params[:version].to_i+1, :client_id => params[:client_id].to_i) | |
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 Event < ActiveRecord::Base | |
belongs_to :owner, class_name: 'User', foreign_key: 'user_id' | |
belongs_to :place | |
has_many :photos, as: :parent | |
validates_presence_of :name, :owner | |
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
URL goes like this: | |
http://localhost:3000/admin/photos?utf8=%E2%9C%93&tag=6 | |
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
Crie a pasta stylesheets/pdf | |
Coloque os .css.scss que deseja lá dentro | |
Crie um stylesheets/pdf_manifest.css.sccs | |
Inclua os .css que precisar no manifest (*= require) | |
Adicione a regra de compilação no production.rb | |
Carregue o manifest que deseja no layout específico. |
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
Para MAC OS! (O som só funciona em MacOs) | |
Faça download do script. | |
Edite ele de acordo com suas necessidades (jogos, categorias) | |
Abra o terminal. | |
Vá até a pasta do script. | |
execute com: | |
ruby kurira_ticket_notifier.rb |
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 OfflineTemplate < AbstractController::Base | |
include AbstractController::Logger | |
include AbstractController::Rendering | |
include AbstractController::Layouts | |
include AbstractController::Helpers | |
include AbstractController::Translation | |
include AbstractController::AssetPaths | |
include ActionDispatch::Routing::UrlFor | |
include Rails.application.routes.url_helpers | |
Rails.application.routes.default_url_options = { :host => 'www.yoursite.com' } |
OlderNewer