Ramses

Caracas, Venezuela

Age: 33

I'm a Software engineer from Venezuela. with experience in languages like Java, PHP, Ruby, Javascript and C# .NET. Love open source, but firm believer of "right tool for the right job". Currently working on a research project involving Semantic Web and SPARQL endpoints

Jan
14
answered What's wrong with my query debscribed below?
Jan
14
awarded Informed
Nov
15
comment how to copy derby table
you missed 'table' before table2 in the create statement. It should read: create table table2 as select * from table1 with no data;
Oct
30
answered NoMethodError Railscast 250 - Rails 4
Feb
26
awarded Popular Question
Nov
26
answered Devise + OmniAuth - How to capture a FB Connect on registration
Nov
14
comment Devise: Sign-in fails, how to debug?
I had the exact same problem, only that I didn't have the attr_accessor :password line. In my case, the problem was caused because I had a before_save :encrypt_password, so I was encrypting the password twice. I'm leaving it here in case that anyone runs into the same problem
Aug
8
awarded Notable Question
May
30
comment Rails 3: Form getting submitted twice
I was just getting the same problem, I was binding clicks with '$(document).on('click', '#button', 'myData', myFunction); '. Replaced that with $('#button').click(myFunction(myData));
May
14
comment Rails 3 isn't loading gems
It didn't work either... had my hopes up with this one :-(! Well, I'm going to try to rollback some code changes to check if that helps! thanks for your suggestions
May
14
awarded Commentator
May
14
comment Rails 3 isn't loading gems
No, it throws the same error uninitialized constant Kaminari (NameError)
May
14
comment Rails 3 isn't loading gems
Hi Kevin, per your suggestion, I ran rvm 1.9.2-p290 do gem list, and kaminari is shown there. Also, running bundle install shows it installed as well
May
14
asked Rails 3 isn't loading gems
Apr
9
awarded Popular Question
Mar
31
comment h:commanButton in JSF 2.0 error
Did you try removing the logging you added? Did the button work after that?
Mar
31
awarded Student
Mar
30
comment What is the "Rails Way" of doing a query with an OR clause using ActiveRecord?
What I meant was how to programmatically add the third (or fourth) OR , not just altering the query string...
Mar
30
awarded Scholar
Mar
30
comment What is the "Rails Way" of doing a query with an OR clause using ActiveRecord?
This worked like a charm. just a little modification to your example: Model.where(names.map{"category_name LIKE ?"}.join(" OR "), *names.map{|n|"%#{n}%"})... the #{ } around "n" was missing
1 2 3