Displaying 3 results from an estimated 3 matches for "fdlslcb4kypknbxzx".
2013 Apr 12
4
rails named scopes and sql injection
HI guys,
I just came through an example on code of the place I work for that said
something like this could be vulnerable to sql injection attacks:
scope :with_name, lambda { |name| where("LOWER(name) LIKE ?",
name.downcase) }
I wonder if this is true. My thought is that rails should escape this and
that anything that tried to do something different would fail on the
translation
2013 Jul 04
3
Rspec devise, testing extended RegistrationController action destroy
Hi everyone,
I have devise 1.5.4 working with rails 3.0.20 and ruby 1.8.7 .
I have extended the destroy action from the RegistrationController, to soft
delete users instead of really deleting them from the database.
def destroy
# raise resouce.inspect # this is just to see if the test hits the
action
resource.soft_delete
set_flash_message :notice, :destroyed
sign_out resource
2014 May 08
0
Rails log for rspec tests inside of an engine
Would anybody know how to do
this: http://stackoverflow.com/questions/20001361/rails-log-for-rspec-tests-inside-of-an-engine
?? thanks for the help
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to