search for: dbrady010

Displaying 6 results from an estimated 6 matches for "dbrady010".

2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine,
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed Yeah. Technically this is a feature in Ruby. :) Allowing you to overwrite everything for if you need something different for this one thing. Problem is that you just have to remember a whole lot of things. On 5/5/06, Donald Brady <dbrady010@mac.com> wrote: > Ahhhhhhhh > > Thank you!! > > When your new error messages can be so inscrutable. > > > J?n Borg??rsson wrote: > > You can not have a column called open in your database. The problem is > > that RoR creates a class with the database with all...
2006 Jun 10
1
Best Practices for Shared Models?
What''s the best practice for having multiple ruby apps sharing the same set of models? Are people just doing file system sym links or copying, or is there an elegant little hook I don''t know about that lets you tell the apps to look in a different location other than app/models? -- Posted via http://www.ruby-forum.com/.
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
Hi All I can''t for the life of me see what is wrong with this. Maybe it''s cause it''s midnight... I want to put some data in a session and I have some code like this: class ApplicationController < ActionController::Base model :mything def ApplicationController.chosen_thing session[:chosen_thing] ||= MyThing.defaultThing end end So whenever I try to
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works
2006 Aug 03
3
HELP: multiple select list in ror
Hi Search doesn''t seem to be working so my apologies if this has come up before. I have some simple code in a view that generates a multiple select: <select name="menu_select" size="5" multiple="multiple"> <% for m in Menu.find(:all) %> <!-- this needs to be abstracted in ror fashion --> <option value="<%= m.id %>"