Displaying 3 results from an estimated 3 matches for "ivanvr".
2005 Oct 21
8
Wrong number of arguments (1 for 0) on routes.rb
Hi,
I''m baffled by this error. I need a simple controller to send e-mails,
so first I thought about just creating the controller manually (without
using script/generate), since that didn''t seem to work, I created a
dummy table in my DB and used the usual procedure to generate scaffold code.
Then I modified the controller to have only two methods, send and compose:
class
2005 Oct 15
0
Making link_to use the routes I define
Hi,
In my rails application I have a controller (message) that handles all
top-level directory requests, and maps it to a list view.
How can I use link_to to link to the URLs generated by this route?
map.connect '':forum_url_name/'', :controller => ''messages'', :action => ''list''
Then I have a (forum) controller that lists all its
2005 Oct 07
2
Some Ruby code help?
Hi,
This isn''t related to Rails itself, but rather to Ruby. I''m trying to
import a file into a database. The fields are separated by a ''|''.
Everything seems to work fine, but after 64 rows are inserted, it starts
mangling the field values. Would you take a look at the following code?
require ''mysql''
def capitalize(str)