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
actionpack (4.2.1) lib/action_dispatch/routing/polymorphic_routes.rb:220:in `polymorphic_method' | |
actionpack (4.2.1) lib/action_dispatch/routing/polymorphic_routes.rb:134:in `polymorphic_path' | |
actionview (4.2.1) lib/action_view/helpers/form_helper.rb:466:in `apply_form_for_options!' | |
actionview (4.2.1) lib/action_view/helpers/form_helper.rb:434:in `form_for' | |
haml (4.0.6) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml' | |
haml (4.0.6) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss' | |
simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for' | |
simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc' | |
simple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for' | |
app/views/documents/new.html.haml:4:in `_app_views_documents_new_html_haml___937398683812074929_70346381933360' |
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
# app/controllers/documents_controller.rb | |
def new | |
@document = Document.new | |
end | |
def create | |
@document = current_user.documents.build(document_params) | |
if @document.save | |
render :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
class Yum < ActiveRecord::Base | |
default_scope -> { order('yums.created_at DESC') } | |
has_many :mentions, as: :trackable, dependent: :destroy | |
has_many :reports, as: :trackable | |
belongs_to :user | |
has_many :likes, dependent: :destroy |
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
a fuercioris - por la fuerza. | |
a golpe de calcetín - a pie. | |
a grapa - gratis. | |
A grito pelado - a grandes voces. | |
A la brava - descuidadamente, desconsideradamente. | |
a la chingada - interjección equivalente a "al infierno" | |
A lo macho - en serio. | |
A morir - mucho. | |
a papuchi - cargar en los hombros a una persona. | |
A patin - a pie. |
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
[2/12/15, 12:57:18 PM] Francisco Granados: Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/yummmie/git-ssh.sh /usr/bin/env git ls-remote -h [email protected]:yummmie-app/yummmie-web.git ) | |
DEBUG[589fd4e7] Permission denied (publickey). | |
DEBUG[589fd4e7] fatal: Could not read from remote repository. | |
DEBUG[589fd4e7] | |
DEBUG[589fd4e7] Please make sure you have the correct access rights | |
DEBUG[589fd4e7] and the repository exists. | |
[2/12/15, 12:59:47 PM] Francisco Granados: /tmp/yummmie/git-ssh.sh |
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
[Venue(id: integer, name: string, foursquare_id: string, created_at: datetime, updated_at: datetime, location_id: integer, private_venue: boolean, owner_id: integer, creator_id: integer), PgSearch, #<Module:0x007f960b808d08>, Venue::GeneratedAssociationMethods, #<Module:0x007f960b940bf8>, ActiveRecord::Base, ActiveRecordExtension, DelayedPaperclip::InstanceMethods, DelayedPaperclip::Glue, Paperclip::Schema, Paperclip::Validators::HelperMethods, Paperclip::Validators, Paperclip::Callbacks::Running, Paperclip::Callbacks, Paperclip::Glue, ActiveRecord::Store, ActiveRecord::Serialization, ActiveModel::Serializers::Xml, ActiveModel::Serializers::JSON, ActiveModel::Serialization, ActiveRecord::Reflection, ActiveRecord::NoTouching, ActiveRecord::Transactions, ActiveRecord::Aggregations, ActiveRecord::NestedAttributes, ActiveRecord::AutosaveAssociation, ActiveModel::SecurePassword, ActiveRecord::Associations, ActiveRecord::Timestamp, ActiveModel::Validations::Callbacks, ActiveRecord::Callbacks, ActiveRecord::Attribut |
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
[Venue(id: integer, name: string, foursquare_id: string, created_at: datetime, updated_at: datetime, location_id: integer, private_venue: boolean, owner_id: integer, creator_id: integer), PgSearch, #<Module:0x007f960b808d08>, Venue::GeneratedAssociationMethods, #<Module:0x007f960b940bf8>, ActiveRecord::Base, ActiveRecordExtension, DelayedPaperclip::InstanceMethods, DelayedPaperclip::Glue, Paperclip::Schema, Paperclip::Validators::HelperMethods, Paperclip::Validators, Paperclip::Callbacks::Running, Paperclip::Callbacks, Paperclip::Glue, ActiveRecord::Store, ActiveRecord::Serialization, ActiveModel::Serializers::Xml, ActiveModel::Serializers::JSON, ActiveModel::Serialization, ActiveRecord::Reflection, ActiveRecord::NoTouching, ActiveRecord::Transactions, ActiveRecord::Aggregations, ActiveRecord::NestedAttributes, ActiveRecord::AutosaveAssociation, ActiveModel::SecurePassword, ActiveRecord::Associations, ActiveRecord::Timestamp, ActiveModel::Validations::Callbacks, ActiveRecord::Callbacks, ActiveRecord::Attribut |
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
@venues = Venue | |
@venues = @venues.creator(params[:user_id]) if params[:user_id].present? | |
@venues = @venues.search_by_categories(params[:category]) if params[:category].present? | |
@venues = @venues.search(params[:query]) if params[:query].present? | |
@venues = @venues.near(params[:ll]) if params[:ll].present? | |
@venues = @venues.after(params[:after]) if params[:after].present? | |
@venues = @venues.before(params[:before]) if params[:before].present? |
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
def followers | |
@users = @user.followers.order("relationships.created_at DESC") | |
@users = @users.where("relationships.follower_id > ?", params[:after]) if params[:after].present? | |
@users = @users.where("relationships.follower_id < ?", params[:before]) if params[:before].present? | |
@users = @users.limit(20) | |
render :index, status: :ok | |
end | |
def following | |
@users = @user.followed_users.order("relationships.created_at DESC") |
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
env = ENV["RAILS_ENV"] || "development" | |
app_dir = "yummmie" | |
worker_processes 4 | |
# listen on both a Unix domain socket and a TCP port, | |
# we use a shorter backlog for quicker failover when busy | |
listen "/tmp/unicorn.#{app_dir}.socket", :backlog => 64 | |
# Preload our app for more speed |