Displaying 4 results from an estimated 4 matches for "revolutiononrails".
2007 Aug 09
7
Integrating polymorphic models into controllers views? how?
...many comments.
the route is /shows/1/episodes/1/
Now to add a comment to that episode, how would I do it? Let''s say
that the comment is polymorphic, how do I create a dynamic view for
polymorphic assocations? This has the same question towards a
controller. I have taken a look at http://revolutiononrails.blogspot.com/2
... llers.html but that still doesn''t answer my question with two
parents?
I need something like
- form_for([@parent1, @parent2, :comment]) do |f|
= f.text_area :comment
= f.submit ''Comment!''
Any help would be awesome, thanks!
--~--~---------~--~--...
2007 Feb 08
0
derive.js - Ruby-esque derivation/mixins for Prototype
...''s not.
It''s cleaned up a lot of the project I was working on, but I''m sure
there may be some additional compact ''quick wins'' that I''ve missed.
Thoughts? Suggestions?
Code:
http://www.bigbold.com/snippets/posts/show/3481
Discussion:
http://revolutiononrails.blogspot.com/2007/02/derivejs-010-prototypejs-extension-for.html
Cheers,
Eddie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonra...
2007 Jul 18
16
Edge Rails namespaced routing
...ces :notes
customer.resources :tags
end
map.resources :products do |product|
customer.resources :notes
customer.resources :tags
end
Now of course this poses a problem as it stands because the notes and
tags controllers will conflict. I know there are polymorphic routes/
controllers (http://revolutiononrails.blogspot.com/2007/05/drying-up-
polymorphic-controllers.html) however this doesnt make sense if the
controllers have little shared logic/behaviour; only a common name. I
know I can just use a different name, but with the addition of
namespaces this should no longer be a concern with a proper desig...
2008 Dec 28
7
Your thoughts on "Enterprise Rails"
Hello and happy holidays, everyone!
I received the book "Enterprise Rails" by Dan Chak as a Christmas gift
and started reading it; I wanted to gauge the community''s thoughts on
this. Basically, Mr. Chak advocates a totally different approach to
how every other Rails book/tutorial explains how to develop Rails
applications.
Firstly, he advocates you organize your