Render & Action View Outside RailsIf you need to call link_to, or even parse a partial outside Rails, you can just create a new instance of ActionView::Base, as follows: action_view = ActionView::Base.new(
Where LogiController is the controller to which the partial belongs (inside view/logi). And then you can render the partial with: action_view.render(:partial => 'logi_link',
This also works outside Rails (I'm using it for adding a rule to RedCloth that renders a partial for Manta). |
MenuList
