Skip to content

Instantly share code, notes, and snippets.

:collection => @video.comment_titles.map {|ct| [ct.title, { :data_url => comment_title_path(ct) }, ct.id]}
/rubyprograms/dreamstill/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb:7: Configuration is not a class (TypeError)
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from /rubyprograms/dreamstill/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs.rb:23
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from /Library/R
ActiveRecord::Associations::PolymorphicError in Videos#index
Showing /rubyprograms/dreamstill/app/views/layouts/application.html.erb where line #15 raised:
Could not find a valid class for :profiles_showable_objects (tried ProfilesShowableObject). If it's namespaced, be sure to specify it as :"module/profiles_showable_objects" instead.
ActiveRecord::Associations::PolymorphicError in Videos#index
Showing /rubyprograms/dreamstill/app/views/videos/_video.html.erb where line #3 raised:
Could not find a valid class for :showable_objects_users (tried ShowableObjectsUser). If it's namespaced, be sure to specify it as :"module/showable_objects_users" instead.
def build_table_aliases(from)
# for the targets
{}.tap do |aliases|
from.map(&:to_s).sort.map(&:to_sym).each_with_index do |plural, t_index|
begin
table = plural._as_class.table_name
rescue NameError => e
raise PolymorphicError, "Could not find a valid class for #{plural.inspect} (tried #{plural.to_s._classify}). If it's namespaced, be sure to specify it as :\"module/#{plural}\" instead."
end
begin
showable_videos GET /showable_videos(.:format) {:action=>"index", :controller=>"showable_videos"}
POST /showable_videos(.:format) {:action=>"create", :controller=>"showable_videos"}
new_showable_video GET /showable_videos/new(.:format) {:action=>"new", :controller=>"showable_videos"}
edit_showable_video GET /showable_videos/:id/edit(.:format) {:action=>"edit", :controller=>"showable_videos"}
showable_video GET /showable_videos/:id(.:format) {:action=>"show", :controller=>"showable_videos"}
PUT /showable_videos/:id(.:format) {:action=>"update", :controller=>"showable_videos"}
DELETE /showable_videos/:id(.:format)
$.ajax({type:"POST", url:("/showable_videos.js"), data:{[profile:profile_val, video:val]}});
VALID_URLS = [
/^(?:http:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_-]*)/,
/^(?:http:\/\/)?(?:www\.)?vimeo\.com\/(\d+)/,
/^(?:http:\/\/)?(?:www\.)?soundcloud\.com\/(\w+)/,
nil
]
validates :link, :uniqueness => true,
:format => { :with => Regexp.new(VALID_URLS.join('|')) }
Vimeo: /^(http:\/\/)?(www\.)?vimeo\.com\/(\d+)/
SoundCloud: /^(http:\/\/)?(www\.)?soundcloud\.com\/(.*)/
2011-04-28T20:30:48+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
2011-04-28T20:30:48+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2011-04-28T20:30:48+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2011-04-28T20:30:48+00:00 app[web.1]: WHERE a.attrelid = '"signed_users"'::regclass
2011-04-28T20:30:48+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2011-04-28T20:30:48+00:00 app[web.1]: ORDER BY a.attnum
2011-04-28T20:30:48+00:00 app[web.1]: ):
2011-04-28T20:30:48+00:00 app[web.1]: app/controllers/signed_users_controller.rb:3:in `new'
2011-04-28T20:30:48+00:00 app[web.1]: app/controllers/signed_users_controller.rb:3:in `new'
2011-04-28T20:30:48+00:00 app[web.1]: