[Rails] Create form in another Controller's show view

2010-02-01 Thread admanb
This seems like a really obvious question, but I'm blanking on the solution. I have a simple post/comments relationship that fits the basic blog model. That means that the form to create a new comment is in the show action in the Posts controller, but the form links to the create action in the

[Rails] Re: Create form in another Controller's show view

2010-02-01 Thread admanb
Thank you. :) -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more

[Rails] RedCloth 4.2.1 with Rails 2.3.2 -- something's broken

2009-06-26 Thread admanb
I'm having a hell of a time getting RedCloth working. Here's my system info: gem list rails *** LOCAL GEMS *** rails (2.3.2, 1.2.6, 1.2.3) gem list RedCloth *** LOCAL GEMS *** RedCloth (4.2.1, 3.0.4) admanb$ RedCloth -v RedCloth 4.2.1 admanb$ rails -v Rails 2.3.2

[Rails] Rails plugin for directions from Google Maps?

2009-01-21 Thread admanb
Does such a thing exist? YM4R only seems to do markers. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

[Rails] Shared templates across controllers

2009-01-20 Thread admanb
Hey all, Here's my situation: I have a pair of controllers with associated models (called Services and Testimonials) that are quite similar. Because their CRUD behavior is executed via AJAX, the templates for the actions are all short .rjs files. Now, because of the similarity of the models,

[Rails] Re: Shared templates across controllers

2009-01-20 Thread admanb
with anything else. Heck if you have @service  or @testimonial there, you could generalize it more by using the same variable for each   - �...@thing then do �...@thing.class.downcase  to get testimonial or service How does that sound? :) On Tue, Jan 20, 2009 at 3:42 PM, admanb adm...@gmail.com

[Rails] in_place_editor isn't working?

2009-01-15 Thread admanb
I installed the in_place_editor plugin from http://dev.rubyonrails.org/svn/rails/plugins/in_place_editing/ This is what I have: %= in_place_editor_field :frontpage, 'page_text', :in_place_editor_options = { :rows = '30', :cols = '20', :save_text = 'do this' } % This is what I get: span