#rubyonrails - Sat 31 Mar 2007 between 09:58 and 10:34

NY Lost Funds



atechAJCi'm by no means an expert with routing
pitchblackme too
.)
um... i think i will try forum
atechAJCits easier to follow on forums
try posting your full routing.rb file
paul0how i can list the tables from a databse with AR?
i need to access some data from MS SQL Server, and migrate it to a new MySQL server
JensBwhat is the easiest/most obvious way to write something like User.find(:all, :conditions => { :date_of_birth < 18.years.ago }) ?
the "<" is wrong, but I don't know how to put this the right way
mguzmanUser.find(:all, :conditions => ['date_of_birth < ?', 18.years.ago])
JensBok
mguzmaniirc, haven't coded rails in a while :)
JensBis there no way without verbatim SQL?
I'd like to avoid that if possible (-> injection dangers)
atechAJCthe ? will avoid the injection dangers
JensBok
atechAJCthe conditions option provided is fine for your purpose
JensBok
and the formatting of the date vs. formatting of the results of #ago will match magically? or is there something I need to watch out for?
I have bad experiences eg. comparing MySQL TIMESTAMP vs MySQL DATETIME values ...
ilium007can someone please explain thsi line to me ?????
assert_response :success
how the f^& does rails identify a HTTP response code as a ruby symbol ???
these f&*(&ing symbol are driving me insane
JensBa symbol is nothing other than a constant string, from a certain perspective
you ever done C? #define HTTP_SUCCESS 0x019248
if(HTTP_SUCCESS) { ... }
same thing
AFAIK
ilium007yes but the book I am reading seems to show symbold being used in some functions and plain old strings in others
no i have never doen any C
JensBme neither =) that's why the above should have been "if ( response == HTTP_SUCCESS) ..."
mguzmanilium007: check out the source at http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html#M000202
it's actually quite simple
ilium007yeah - as simple as a hole in the head :) check this piece of crap line out:
assert_not_nil assigns(:story)
NewMonarchHey, what files do I remove to delete a controller?
Bongo`controller + helper
or script/destroy controller name

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds