search for: url_nam

Displaying 4 results from an estimated 4 matches for "url_nam".

Did you mean: url_name
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 record on its list action. Currently this is what I do: <%= link_to forum.name, ''/'' + forum.url_name %> Obviously that&...
2008 Apr 19
4
Displaying external url's
I am a rails beginner and I am having trouble displaying external urls on view. This is what i have in DB for ex: www.rubyonrails.com, if i try to construct the url on the page using link_to the url formed is - http://localhost:3000/www.rubyonrails.com. Can someone help me in fixing this issue. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2005 Oct 07
2
Some Ruby code help?
...ate(name, h) id = -1 h.query("SELECT id FROM states WHERE name = ''#{name}''").each do |row| id = row[0] end if id != -1 return id end short = name.gsub(/ /, ''-'').downcase h.query("INSERT INTO states (name, url_name) VALUES(''#{name}'', ''#{short}'')") return h.insert_id() end dbh = Mysql.real_connect(...) rows = 0 File.open($*[0]) do |file| file.each do |row| rows = rows.next row = capitalize(row) row = row.gsub(/ Y /, '' y '&...
2006 Jan 01
4
i2 wiki
hello. i downloaded the latest i2 wiki from the subversion repository. i''m not able to see it working even running under webrick (under windows xp sp2). i created the database (mysql 4.1) via "rake migrate" and instantiated the first web through the console (as suggested by the readme file). when running it what i get in the browser window is a blank page and in the webrick