Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
loading a partial via AJAX
9 views
Skip to first unread message
rails...@gmail.com
unread,
Jul 26, 2010, 8:32:04 AM
7/26/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
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
rails...@gmail.com
unread,
Jul 26, 2010, 6:38:53 PM
7/26/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Any ideas folks?
On Jul 26, 10:32 pm, "
rails.n...@gmail.com
" <
rails.n...@gmail.com
>
wrote:
Reply all
Reply to author
Forward
0 new messages