#rubyonrails - Sun 4 Mar 2007 between 22:59 and 23:11

NY Lost Funds



carterparksit takes 2 restarts to just uninstall windows media player
dionysiani started learning last sunday
chapelhmm
dionysianyesterday i got an app going that allows you to register, log in, and post news to the front page
_thom_so I'm looking at order.rb and checkout.rhtml
in order.rb I have (forgive my one line paste:)
validates_inclusion_of :payment_type_id, :in => PaymentType.find(:all).map {|type| type.id}
and in checkout.rhtml, lemme crunch this down to one line...
<label for="order_payment_type">Pay with:</label><%= form.select :payment_type_id, PaymentType.find(:all).collect {|type| [type.label, type.id]}, :prompt => "Select a payment method", :selected => nil %>
so I am guessing my mistake should be patently obvious to someone who knows RoR :)
dionysian:selected => nil
what's that do?
arooniwhat do i need to do to make sure my models load
i mean the ones that dont descned from activerecord ... mixins
its include reloadable or something right
action_thom_ refers to his docs again
_thom_refers to his docs again
pstickneyes, look up "reloadable" arooni
chapelcarterparks: did you checkout my link?
carterparksya
how is this legal?
chapelthey arent hosting the files
remote servers are
carterparksahhh
chapelyoutube/daily motion
dailymotion is french
_thom_dionysian, without that nil, there is a value already selected instead of the "pick a value" message.
however, WITH it there, it appears to wipe it every time.
chapel_thom_: just so you know, you should make sure to document your playtime changes to the depot app
because by the end, you will be using the default app for certain things like testing
_thom_eg so in later chapters...
right, well, I knew that doing the extra credit would probably multiply my work exponentially
chapelnot a big deal, but might save some headaches
aroonifolks when i do .... 'rails foo' i get a new rails app... but when i do 'ruby ./script/generate model sale' nothing happens
ideas?
_thom_this forces me to start grokking sooner instead of getting to the end and being like, wow, I just typed a bunch of stuff.
chapelruby script/generate model sale
_thom_thanks for the advice though. do you have any suggestions about how to default populate this list, yet have it remember the right value ... 'correctly' ?
_3DStudioanyone using textmate? It just updated on me and ^Z/^X no longer work.. was this changed or depreciated?
didn't see anything in the change log
chapeli didnt see the changes _3DStudio

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 

IrcArchive

NY Lost Funds