Janna Brossard wrote:
> Well, for example. I was going to have it write partials into /public/
> blahblah/_mypartial!.erb

map.connect "/blahblah/:partial_name", :controller => "yourcontroller", 
:action => "your_action"

This would work provided you're always routing to the same controller 
and action.

I suppose in the action you'd just call something like

def my_action
  render :partial => params[:partial_name]
end


not 100% sure if that would work the way you want it to though.

Can you elaborate a little more?


Gavin

http://handyrailstips.com

-- 
Posted via http://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to