Loading a partial via AJAX

Hi

I accept that partials are not intended to be exposed via a URL

However I’d like to load my basic _form.html.erb partial for my model
to build basic AJAX form

So one way to do this is to put something like this in the controller:

def basic_form
render :partial=>“form”
end

… but… is there a cleaner way?

cheers

Any ideas folks?

On Jul 26, 10:32 pm, “[email protected][email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs