Statistics | Archive | Index | API Lookup

akov_

Has used 5 hostnames

Has been thanked 0 times and rebuked 0 times

Memorable lines

See everything by this person
[01:50:00] quit akov_
[19:20:00] quit akov_
[12:51:00] <akov_> ah nevermind i figured it out
[12:50:00] <akov_> anyone know what the error "builder.rb:76:in `delete': can't convert Symbol into String (TypeError)" popping up when i try to scaffold anything in this project means? i scaffolded just fine in this project previously
[12:21:00] <akov_> worked just fine yesterday
[12:21:00] <akov_> im getting a "/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/builder.rb:76:in `delete': can't convert Symbol into String (TypeError)" when i try to scaffold anything, whats the problem?
[12:19:00] join akov_
[01:08:00] quit akov_
[20:27:00] <akov_> i guess ill just do that
[20:27:00] <akov_> well yeah but it looks clunky compared to <% title @title %>
[20:25:00] <akov_> im watching a screencast thats using a title method to set the title of a page, but rails 2.1 is telling me there's no such method, is it no longer in 2.1?
[16:33:00] join akov_
[00:52:00] quit akov_
[23:59:00] join akov_
[20:10:00] quit akov_
[12:42:00] <akov_> http://www.onlamp.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rails-revisited.html - is this tutorial too out of date now? or is it still the best place to start?
[12:41:00] join akov_
[23:44:00] quit akov_
[21:57:00] <akov_> thats normal in production environment
[21:43:00] <akov_> im using apache to proxy to mongrel
[21:43:00] <akov_> would it then be served by the mongrel server rather than apache?
[21:42:00] <akov_> oh, right, it is not
[21:41:00] <akov_> public_html yes
[21:38:00] <akov_> and manuals being a folder inside docs
[21:38:00] <akov_> docs is a folder residing in the same directory as the rails app
[21:34:00] <akov_> for example: "docs/manuals/SP520.pdf"
[21:32:00] <akov_> andersbr, a bit
[21:21:00] <akov_> rails is trying to interpret links to files on my server as routes and giving a 404, how do i prevent this?
[21:21:00] join akov_
[23:07:00] quit akov_

Messages directed at akov_

See everything directed at this person
[20:29:00] <Radar> akov_: you may be interested to know that your layout is rendered AFTER your view, so calling it all in the view should work <%@title = "blah" %>
[20:26:00] <Radar> akov_: easy way to do that is to use the instance variable title and then do <title><%= @title %></title> in your layout
[22:04:00] <iHate> akov_: and it's not "normal" in production. even if you're running mongrel all you have to do is restart the mongrels - not apache with it.
[21:41:00] <andersbr> akov_: is docs in the public directory?
[21:28:00] <andersbr> akov_: You done much with routes before?
[20:02:00] <Adam12> akov_: The database should exist already, unless you have something specific in your migration?
[23:59:00] <djones_|away> akov_: just have something like a site_settings table.
[23:57:00] <djones_> akov_: lots of ways. dunno if one is really preferred over another. you could load it as an initializer, or an admin variable like Radar said.
[23:56:00] <djones_> akov_: such as?
[23:56:00] <Radar> akov_: I stick it all in config/environment.rb as constants