#rubyonrails - Sun 4 Mar 2007 between 17:44 and 17:56

NY Lost Funds



actionzapnap just ordered 'ruby for rails' which he hears is a good read for folks hoping to go from journeyman to master, heh
zapnapjust ordered 'ruby for rails' which he hears is a good read for folks hoping to go from journeyman to master, heh
GlimjaurHi
unlinksaint_cypher: for that page?
sheldonhzapnap: try moving the require out, but leaving the logger assignment in
zapnapmagic methods, like magic tricks, are fun when you're a kid. later on, when you want to know how they work, they're just frustrating ;)
sheldonh: good call, will try.
unlinksaint_cypher: how do you do a single static page?
Glimjauris there any easy way to change the name of all the occurences of a controller/model fast and easily?
saint_cypherunlink: in public
Glimjauras if, i have a controller called "index" and want to rename it and all the occurences to "start"
:)
zapnapsheldonh: no diff there
GlimjaurOr should i go through the helpers/models/views associated with it and do it manually?
saint_cypheromegadan: Model.new.attributes.length
unlinksaint_cypher: something like public/help/index.html?
saint_cypher: i mean, is that the idiom?
omegadansaint_cypher: thank you sir
saint_cypherunlink: or just public/help.html
hatezillazedas: you around?
unlinksaint_cypher: right, but if i wanted to add logic to the page in the future, i wouldn't want to have to change all of the links to it across the whole app
saint_cypherunlink: then do render :file from inside your controller
omegadansaint_cyhper: I am retarded ... i meant rows, not columns, ye know of a way to do this?
unlinksaint_cypher: where can i get documentation on render :file?
jeezcome_jeezgoexcuse me again, Can anyone tell me what is wrong with this syntax? <%= state_select(:order, :bill_to_state, :html_options => {:tabindex => (@tabvar += 1)}) %>
saint_cypherunlink: api.rubyonrails.org
jeezcome_jeezgoI get 'undefined method 'upcase for :html_options hash'
_thom_Hey guys... I'm still working my way through the skateboard book, 'depot' sample app, and I'm on the AJAX chapter. I'm getting an error the very first time I add an item to the cart: RJS error: TypeError: $("current_item") has no properties" (in firefox.) Any ideas?
unlinksaint_cypher: *nod*
saint_cypher: thanks.
jeezcome_jeezgo_thom_: have you joined the agile web dev google group?
_thom_No, I wasn't aware of that. I have looked at their wiki to see if anyone had documented this error, though.
jeezcome_jeezgo_thom_: I don't know the answer, but when I was working through that book a couple of months ago, I had good experiences with the google group.
saint_cypherjeezcome_jeezgo: have you checked the type of (@tabvar +=1)?
_thom_ok, thanks.
jeezcome_jeezgosaint_cypher: Ummm... it works for all the other fields? I assume it is NOT a string
that is not a good answer to your question, because I don't know it.
_thom_ah, and I just found this, too.: http://books.pragprog.com/titles/rails2/errata
sheldonhzapnap: could you live with this outside the initializer run block? Object.const_set "RAILS_DEFAULT_LOGGER", DevelopmentLogger.new(...)
jeezcome_jeezgo_thom_: yep, that is handy as well, but definitely check the google group, you will most likely get feedback from the authors.
zapnapsheldonh: it still smells wrong but it's an order of magnitude better than monkey patching :p

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 

IrcArchive

NY Lost Funds