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
/home/kevin/.rvm/gems/ruby-1.9.3-p0@hobo20/bundler/gems/hobo-645cb9c8e839/hobo/lib/hobo/extensions/enumerable.rb:5:in `block in group_by_with_metadata' | |
/home/kevin/.rvm/gems/ruby-1.9.3-p0@hobo20/bundler/gems/hobo-645cb9c8e839/hobo/lib/hobo/extensions/enumerable.rb:4:in `each' | |
/home/kevin/.rvm/gems/ruby-1.9.3-p0@hobo20/bundler/gems/hobo-645cb9c8e839/hobo/lib/hobo/extensions/enumerable.rb:4:in `group_by_with_metadata' | |
journey (1.0.4) lib/journey/gtg/builder.rb:28:in `transition_table' | |
journey (1.0.4) lib/journey/routes.rb:52:in `simulator' | |
journey (1.0.4) lib/journey/router.rb:112:in `simulator' | |
journey (1.0.4) lib/journey/router.rb:121:in `filter_routes' | |
journey (1.0.4) lib/journey/router.rb:128:in `find_routes' | |
journey (1.0.4) lib/journey/router.rb:56:in `call' | |
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in `call' |
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
Foo::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# In the development environment your application's code is reloaded on | |
# every request. This slows down response time but is perfect for development | |
# since you don't have to restart the webserver when you make code changes. | |
config.cache_classes = false | |
# Log error messages when you accidentally call methods on nil. | |
config.whiny_nils = true |
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
<!-- Expects a hash: with keys for the accordion divisions -> values an option list appropriate for tag | |
default tag is select-one-radio for belongs_to and check-many for other contexts | |
example usage: <hjq-accordion options="&Location.all.group_by(&:country)" /> provides an accordion with | |
check-many checkboxes grouped by country name if the context is a has_many :locations, :through ... type | |
of association. | |
--> | |
<def tag="hjq-accordion" attrs="id, options, tag"><% | |
id ||= "accordion" | |
tag ||= if (refl = this_field_reflection) | |
if refl.macro == :belongs_to |
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
<def tag="select-one-radio" attrs='include-none, blank-message, options, sort, limit, text-method'><% | |
raise Hobo::PermissionDeniedError.new("Not allowed to edit #{this_field}") if !attributes[:disabled] && !can_edit? | |
blank_message ||= ht("#{this_type.name.underscore}.messages.none", :default=>"No #{this_type.model_name.human} available.") | |
limit ||= 100 | |
options ||= begin | |
conditions = ActiveRecord::Associations::BelongsToAssociation.new(this_parent, this_field_reflection).send(:conditions) | |
order = this_field_reflection.klass.default_order | |
this_field_reflection.klass.all(:conditions => conditions, :limit => limit, :order => order).select {|x| can_view?(x)} | |
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
ActionView::Template::Error (undefined method `default_order' for #<Class:0xb4dbc7ac>): | |
0 app/views/taglibs/auto/rapid/forms.dryml:6:in `form__for_comment' | |
app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_comment' | |
app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_comment' | |
app/views/taglibs/auto/rapid/forms.dryml:3:in `form__for_comment' | |
app/views/taglibs/application.dryml:18:in `show_page' | |
app/views/taglibs/application.dryml:14:in `show_page' | |
app/views/taglibs/application.dryml:14:in `show_page' | |
app/views/taglibs/application.dryml:13:in `show_page' | |
app/views/taglibs/auto/rapid/pages.dryml:220:in `show_page__for_post' |
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
has_attached_file :image, | |
:styles => { | |
:original => ["1000x1000", :jpg ], | |
:medium => ["500x800", :jpg ], | |
:small => ["300x500", :jpg ], | |
:thumbnail => ["100x100#", :jpg ] | |
}, | |
:default_style => :medium, | |
:storage => :s3, | |
:path => ":style/:id_:basename.:extension", |
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
autocomplete :new_tag_name do | |
post = find_instance | |
items = Tag.find(:all,:conditions => ['name LIKE ?',"%#{params[:query]}%"]).select { |i| i.viewable_by?(current_user) } | |
items = items - post.tags | |
render :text => "<ul>\n" + | |
items.map { |i| "<li>#{i.name}</li>\n" }.join + | |
"</ul>" | |
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
NoMethodError (undefined method `get_field_path' for Hobo:Module): | |
vendor/plugins/hobo/hobo/lib/hobo/hobo_helper.rb:245:in `can_view?' | |
vendor/plugins/hobo/hobo/taglibs/rapid_core.dryml:201:in `name' | |
vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:328:in `_tag_context' | |
vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' | |
vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:248:in `new_context' | |
vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:328:in `_tag_context' | |
vendor/plugins/hobo/hobo/taglibs/rapid_core.dryml:191:in `name' | |
app/views/taglibs/application.dryml:117:in `input__for_hobo_fields__markdown_string' | |
vendor/plugins/hobo/dryml/lib/dryml/template_environment.rb:328:in `_tag_context' |
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
class Comment < ActiveRecord::Base | |
hobo_model # Don't put anything above this | |
fields do | |
body :text, :required | |
timestamps | |
end | |
belongs_to :commentable, :polymorphic => true, :counter_cache => true |
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
class Comment < ActiveRecord::Base | |
hobo_model # Don't put anything above this | |
fields do | |
body :text, :required | |
timestamps | |
end | |
belongs_to :commentable, :polymorphic => true, :counter_cache => true |
NewerOlder