#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10
Top Prev 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 Next
#rubyonrails
<jstew> technoweenies whitelist plugin
<wcdevel> cool, I'll check it you :)
<jstew> http://svn.techno-weenie.net/projects/plugins/white_list/
<BucWheat> jstew i have my link_to_remote send alert to page when clicked. how do i tell it to update table rows on page?
<jstew> BucWheat: RJS or something similar
<BucWheat> jstew i figured RJS but what specifier would i use after page. ?
<|PiP|> does ActiveRecord store blanks from a form as NULL or "" ?
<jstew> if it's something simple (1 id) you can use :update => your_id and just render what you need to replace in the remote action
<|PiP|> because it is saving as "" for me
<BucWheat> jstew i'm pulling all records in db and sorting by certain column name and that is what i need returned to page
<jstew> page.replace_html I believe. I'm not all that handy with AJAX yet so please take my advice with a grain of salt :)
<BucWheat> jstew depending on what they click on page will determine how records are displayed on page
<slidge> im interested in a database model where you can have a response to a request (Response class has_many :requests), but the response doesn't necessarily need a request. how can I model this, while maintaining relational integrity at the db level?
<slidge> I guess it would make more sense to think of Response as Message
<Skiz> slidge: have a :dependent => :destroy
<slidge> Skiz: won't that just delete the responses that are tied to a request when the request is deleted?
<Skiz> yup
<slidge> so you're saying, don't put the relational integrity at the db level with foreign keys
<slidge> but used dependent destroy?
<slidge> useraht
<Skiz> you can do it at the db level too
<slidge> then how can I create an unsolicted Message?>
<Skiz> you will need to catch more possible issues at the controller level
<slidge> I need to be able to make one without there being a corresponding request
<|PiP|> how do i get activerecord to save "" from form's as NULL?
<zachinglis> http://pastie.caboo.se/41310 Can someone tell me why I am getting this error?
<jstew> slidge: if your database will only be accessed by your rails app then it's the best way in my opnion
<bongoman> Does everyone just use the public/404.html and public/500.html pages for errors?
<jstew> do you have a method named latest_seriesep in your Theory model?
<nad1m> why do i see a "we're sorry but something went wrong ....... " message
<jstew> or in your theories database?
<zachinglis> jstew: Nope. I'm not trying to use that. I'm trying to pass a param, simple
<Skiz> |PiP|: you are still worried about that?
<|PiP|> Skiz: yes
<jstew> zachinglis: perhaps latest_seriesep is somehow getting into your theory params hash
<ant1matter> good lord ive been having issues with irssi and ghosted aliases
<zachinglis> jstew: guessed that. Can't work out how or why
<ant1matter> im assuming my posts were not seen before about rspec so im going to post again
<jstew> and since you are creating a new theory from that hash it tries to assign that as an attribute
<ant1matter> having some problems with rspec - ive installed the gems and dependencies but keep getting errors that the generators dont exist.
<jstew> what does your form tag helper look like?
<zachinglis> jstew, rather messy.
<zachinglis> all you need to know about it is that I posted
<slidge> jstew: I am still a bit confused. I want to be able to create Messages in response to Requests, but not have the Requests be necessarily. In other words have a request_id in the Message but only when there is a Request it is responding to.
<ant1matter> can you all see my posts? wondering if freenode is blocking me
<jstew> just make request_id nil for those messeages that do not have requests
<zachinglis> ant1matter: yes
<locellcount> hmmm, well that's annoying. I can send an email via telnet, but ActionMailer doesn't send it, in fact it sits there for ages and does nothing
<slidge> jstew: then what can I do about database integrity?
<ant1matter> zachinglis: thanks - much weirdness tonight with irssi
Previous Page Next Page