Displaying 4 results from an estimated 4 matches for "photos_path".
2008 Sep 18
2
Setting up Fleximage
...er for "new" but then it
returned that it could not find the table Photo.
- I created a new migration for a photo table, including only the fields
for name and author, which are also requested in the provided "new"
view.
- Now, it just returns the error "undefined method `photos_path'' for
#<ActionView::Base:0x230ee70>"
Since I''m incredibly new to fleximage, I''m not exactly sure if I''m going
in the wrong direction with my troubleshooting, if a table even needed
to be created for the photos or what my next step should be.
If anyone...
2010 Sep 21
0
Upload form with uploadify jquery plugin
...new field and have it get
submitted with the file upload. I added a name field into the form, but
the valued does not get submitted.
<%
dialog_file_description = ''Photos''
allowed_extensions = [:jpg, :jpeg, :gif, :png]
max_size = 20.megabyte
allow_multiple_files = true
url = photos_path
photo_field = ''#photo_photo''
%>
<%- session_key_name = ActionController::Base.session_options[:key] -%>
<% content_for :jstemplates do -%>
<%= javascript_tag "window._token = ''#{form_authenticity_token}''" %>
<%= javascript_includ...
2009 Feb 21
1
undefined method user_id
...params[:photo_id])
@comment = Comment.new(:user_id => @logged_in_user.id,
:body =>
params[:comment][:body])
if @photo.comments << @comment
flash[:notice] = ''Comment was successfully created.''
redirect_to photos_path(:user_id => @photo.user,
:photo_id => @photo)
else
render :controller => ''photos'', :action => ''show'',
:user_id => @photo.user, :photo_id => @photo
end
end
def destroy...
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
Hi
WOW! Is Rails 3 another interesting learning curve. Just when I think
I have a general working knowledge of Rails 2 ... things change.
I''m trying to replicate the following in Rails 3:
<%= link_to_remote image_tag("creditcard.png", :border => 0), :url =>
{:action => :make_payment, :type => "Credit", :id =>
@appt.id },