search for: quotecontroller

Displaying 3 results from an estimated 3 matches for "quotecontroller".

Did you mean: quote_controller
2006 Jun 13
13
Pass infomation between different views and controllers
Hi, I am a rails and ruby nuby :-) How do you pass data between different controllers and views? I have a page ( a quote) that I am editing url ....quote/edit/6 6 id the current id. I then go to a catalog (url....catalog) to add an item to my quote (I do this via a line_item file that the quote reads) I now want to go back to the quote. I have tried this <%= link_to ''Back to
2011 Feb 21
2
self.prepend_view_path - am I missing something
...the template to be rendered for the controller from app/ views/quote/type1/new.html.erb if it exists, if it does not exist it will fall back to app/views/quote/new.html.erb When I GET http://domain1:3000/quote/new it always renders app/views/ quote/new.html.erb and in the log I can see Processing QuoteController#new (for 192.168.1.24 at 2011-02-21 18:47:52) [GET] Domain Load (0.2ms) SELECT * FROM "domains" WHERE ("domains"."host" = ''example.com'') LIMIT 1 Policy Load (0.2ms) SELECT * FROM "policies" WHERE ("policies"."id"...
2006 Aug 13
5
Newbie question: scaffold not working
...d model, and the error I get. Anyone have any idea why this doesn''t just work? Btw, I''ve got Ruby 1.8.4 (2006-04-14) [i386-mswin32], and I can''t figure out what version of Rails (or even RubyGems...I used this last night to install Rails). In app/controllers: class QuoteController < ApplicationController scaffold :quote end In app/models: class Quote < ActiveRecord::Base end Here is the error I got: ArgumentError in Quote#index Showing c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/scaffolds/list.rhtml where line #13 raise...