search for: products_path

Displaying 5 results from an estimated 5 matches for "products_path".

Did you mean: product_path
2012 May 07
1
Sprockets, JST, Eco and escaping
...ate. For example, as far as I could find out Handlebars won''t support local helpers for instance. I don''t like the idea of polluting the global space with lots of helpers because it would be a mess for me to maintain such code. Also, I miss an easy way to embed something like products_path in my ECO templates for obvious reasons, but this is a minor issue for me... Escaping is a very important one though. Thanks in advance, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send emai...
2007 Mar 23
11
Is there such a thing as button_to_remote?
I''ve changed my destructive link_to statements in favor of button_to. But what if I want to make an .rjs call with that button? Seems like we need something equivalent to link_to_remote, so that the button can make an ajax request instead submitting the form. Or am I missing the point entirely? Jeff --~--~---------~--~----~------------~-------~--~----~ You received this message
2007 Oct 22
1
View spec response has no content?
...;'}) end it ''should display menu options'' do response.should have_tag(''a'', :attributes => {:href => customers_path, :text => ''Customers''}) response.should have_tag(''a'', :attributes => {:href => products_path, :text => ''Products''}) response.should have_tag(''a'', :attributes => {:href => reservations_path, :text => ''Reservations''}) response.should have_tag(''a'', :attributes => {:href => reports_path, :text =&g...
2010 Apr 14
1
Rails does not display form error message on a custom method
...nt_order respond_to do |format| if @order.update_attributes(params[:order]) @order.complete #sets submitted datetime and state to ''complete'' flash[:notice] = ''Thank you! Your order is being processed.'' format.html { redirect_to( products_path ) } format.xml { head :ok } else flash[:error] = ''Please review your items'' #added to confirm an error is present format.html { redirect_to( checkout_path ) } format.xml { render :xml => @order.errors, :status => :unprocessable_entity...
2010 Apr 14
1
Rails validations app specific problems
...der respond_to do |format| if @order.update_attributes(params[:order]) @order.complete #sets order completed at date and state to ''complete'' flash[:notice] = ''Thank you! Your order is being processed.'' format.html { redirect_to( products_path ) } format.xml { head :ok } else format.html { render :action => ''checkout'' } format.xml { render :xml => @order.errors, :status => :unprocessable_entity } end end end [/code] I know this is kind of tough to understand, please...