Displaying 3 results from an estimated 3 matches for "somethingcontroller".
2006 Aug 03
5
Store common settings in one file?
Hi,
I''m looking for a way to store common settings, such as the
application_name or email address from value in a file.
I then want to be able to call these settings in my controllers and
models?
Is there any easy way of doing this? and where would you recommend I
save the file ?
Thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Mar 19
1
Question on creating a report
Hi,
I''ve got a little Rails app, and I wanted to generate a report from
some data. I did it one way, but it didn''t seem quite "Rails".
I created two methods in a controller, one called "report" that was empty:
def report
end
that would just then display the report.rhtml page. This page
contained a form tag with a text box and a submit button. This form
2007 Jul 02
6
Testing route globbing and limitations of get()
Hi everyone,
I''m new to rails and also to rspec, but I tried to do my homework. To answer
my questions, I searched this list''s archives, the Rails API, and Google, to
no avail. Therefor, I''d be grateful if someone could point me in the right
directions:
1) There doesn''t seem to be a counterpart to assert_recognizes in rspec.
route_for() won''t work