Victor Martins

Maia, Portugal

victormartins.com

Age: 33

"I have many ideas, the problem is, most of them suck" - George Carlin
Mar
18
comment No route matches [GET] "/users/sign_out"
The devil is in the details :P
Mar
17
awarded Necromancer
Feb
25
revised How to parse Nokogiri/libXML XML errors to human-friendly errors?
deleted 5 characters in body
Feb
25
accepted How to parse Nokogiri/libXML XML errors to human-friendly errors?
Feb
25
answered How to parse Nokogiri/libXML XML errors to human-friendly errors?
Feb
24
comment How to parse Nokogiri/libXML XML errors to human-friendly errors?
I've build a parser that in the end does this: gist.github.com/victormartins/9185529 This way my client can show the error messages in anyway they want, just translating the errors in the yml file like thet do for everything else. I will release a gem whem I'm done, maybe it will help someone else.
Feb
21
revised How to parse Nokogiri/libXML XML errors to human-friendly errors?
edited tags; edited title
Feb
21
asked How to parse Nokogiri/libXML XML errors to human-friendly errors?
Feb
14
awarded Notable Question
Dec
15
awarded Popular Question
Dec
9
comment undefined method `migration_error=' for ActiveRecord::Base:Class
Thanks, this helped :)
Nov
30
comment TokenInput plus jQuery UI Dialog conflict
Thanks! Raising the z-index solved the problem!! :)
Nov
4
comment How to cancel a pull request on github?
Yes, deleting the originating branch will delete the pull request.
Oct
25
comment Mac zip compress without __MACOSX folder?
THANK YOU :D :D :D :D
Oct
22
comment Rails 3 custom validation and shoulda
From my perspective, we should work to make the spec and the console output readable. But if you can't have both (kind see why) the output of the console is way more important, if you use the output in verbose mode. If you only use the dots, then the spec is more important. But I definitely like to see a good readable console output, specially when the tests fail :)
Oct
20
comment How do I check an array for duplicates?
monkey patches do tend to bite
Aug
22
comment fatal: bad default revision 'HEAD'
This just did it for me :)
May
26
answered How to include full-path in Rails 3 link_to statement?
May
14
comment Converting existing password hash to Devise
This almost did it for me, I just need to change the Digestion: digest = "#{password}#{password_salt}" 20.times { digest = Digest::SHA512.hexdigest(digest) } return false unless digest == encrypted_password
Sep
5
accepted How to use rails plus paperclip and fog in localhost
1 2 3 4 5