Displaying 3 results from an estimated 3 matches for "monitorships".
2008 Feb 18
5
uh... fixtures?
...xtures = false
config.fixture_path = RAILS_ROOT + ''/test/fixtures/''
# borrow existing ones ^
config.global_fixtures = :posts, :topics, :users
And here''s a Beast test translated into a spec:
describe Post do
fixtures :forums, :moderatorships, :monitorships, :posts, :topics, :users
it ''should require body for post'' do
@post = topics(:pdi).posts.build
@post.valid?
assert @post.errors.on(:body)
end
end
And the whiny nil error message hits topics(:pid).
Any ideas?
--
Phlip
2011 Mar 02
0
polymorphic_path not getting generated
...|attr|
map.resources :posts, :name_prefix => "#{attr}_", :path_prefix =>
"/#{attr.pluralize}/:#{attr}_id"
end
map.resources :forums do |forum|
forum.resources :topics do |topic|
topic.resources :posts
topic.resource :monitorship, :controller => :monitorships
end
end
# Savage beast routes END
map.resources :schools, :has_many => :forums # <------------ I
added this line
Thanks for your help,
-S
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, s...
2009 Dec 31
0
Savage Beast For Rails 2.3
Hello rails..
I have some difficulties when integrate savage beast forum with my
rails app 2.3.
I found error :
uninitialized constant SavageBeast::UserInit::Monitorship
and then about routes..., how to set routes in order to when access
http://mysite/forums the savage beast forum can be run.
Anyone has a real implementation savage-beast in a rails app.., I
thinks that will very help