"Restflection is a Ruby on Rails plugin designed for use in applications which follow RESTful conventions. It allows you to extract information about resources without necessarily knowing what they are called. For example, instead of writing article_path, you could write restflect(:member).path. Why would you do this? You may have shared code, for instance layouts or library files, which need to make use of a resource, but because they operate on any number of different resources, they cannot refer to them by name. The plugin could also be of use to other plugins." Blog post: jonathanleighton.com/blog/restflection-rails-plugin Documentation: jonathanleighton.com/projects/restflection Feedback is always welcome. Jon -- Posted via ruby-forum.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jon, You seem very enlightened in the RESTful world. If appropriate I''d like to ask you a question. I''ve got a VERY nested Rails application that will often call tables 4 or five levels deep. For example LevelFiveTable_path(@tableone.tabletwo.tablethree, (you get the picture).find(tablefive:params) Is there a way to make this look prettier? Thanks, David On Jun 1, 7:07 pm, Jon Leighton <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> "Restflection is a Ruby on Rails plugin designed for use in applications > which follow RESTful conventions. It allows you to extract information > about resources without necessarily knowing what they are called. > > For example, instead of writing article_path, you could write > restflect(:member).path. Why would you do this? You may have shared > code, for instance layouts or library files, which need to make use of a > resource, but because they operate on any number of different resources, > they cannot refer to them by name. The plugin could also be of use to > other plugins." > > Blog post:jonathanleighton.com/blog/restflection-rails-plugin > Documentation:jonathanleighton.com/projects/restflection > > Feedback is always welcome. > > Jon > > -- > Posted viahttp://www.ruby-forum.com.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
BraveDave wrote:> I''ve got a VERY nested Rails application that will often call tables 4 > or five levels deep. For example > LevelFiveTable_path(@tableone.tabletwo.tablethree, (you get the > picture).find(tablefive:params) > Is there a way to make this look prettier?No idea really, especially without knowing the context of your app. You might find this helpful though: weblog.jamisbuck.org/2007/2/5/nesting-resources -- Posted via ruby-forum.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---