Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Carlos Figueiredo
open an issue on mongoid repository to let them track the problem and resolve if possible. Best regards, Carlos Figueiredo On Mon, Apr 21, 2014 at 10:43 PM, Manish Chakravarty manishch...@gmail.comwrote: Hello, I am developing a JRuby on Rails 4 application. I've the following in my Gemfile

Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Carlos Figueiredo
And something i forgot... Mongoid only supports jruby on ruby-1.9 mode... I'm not sure if monoid-4.x already supports jruby running on ruby-2.0 compatibility mode. So, make sure you are running jruby on ruby-1.9 mode. Best regards, Carlos Figueiredo On Tue, Apr 22, 2014 at 2:09 PM, Carlos

Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Carlos Figueiredo
... or at least ask them for support ruby-2.0 mode for jruby On Tue, Apr 22, 2014 at 2:26 PM, Jordon Bedwell envyge...@gmail.com wrote: On Tue, Apr 22, 2014 at 12:20 PM, Carlos Figueiredo carlos.figueired...@gmail.com wrote: Mongoid only supports jruby on ruby-1.9 mode... I'm not sure if monoid-4.x

Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Carlos Figueiredo
rails 4.1 on production... or at least using dependencies that I know that are already supported on rails 4.1 On Tue, Apr 22, 2014 at 2:33 PM, Carlos Figueiredo carlos.figueired...@gmail.com wrote: jruby on ruby 2.0 mode works with rails 4.x without problems... i just said that mongoid does

Re: [Rails] Calling function from html.erb

2014-03-04 Thread Carlos Figueiredo
Put your code on github. It could be a good oportunity to you train git, and for us, is an easier way to know what the context of your problem... First, I recommend to read that: http://guides.rubyonrails.org/routing.html Second... try plan better your routes. It's not related with your

Re: [Rails] startup script

2014-02-28 Thread Carlos Figueiredo
I can not figure out why it can not be done... if you put a symbolic link for your ruby binary, you just need to do something like /etc/init.d/start_fancy_ruby_script.sh # /bin/ruby # puts Your fancy script works On Fri, Feb 28, 2014 at 8:31 AM, Frederick Cheung frederick.che...@gmail.com

Re: [Rails] startup script

2014-02-28 Thread Carlos Figueiredo
, Feb 28, 2014 at 11:28 AM, Carlos Figueiredo carlos.figueired...@gmail.com wrote: I can not figure out why it can not be done... if you put a symbolic link for your ruby binary, you just need to do something like /etc/init.d/start_fancy_ruby_script.sh # /bin/ruby # puts Your fancy script

Re: [Rails] Best practice to use AngularJS with Rails 4

2014-02-07 Thread Carlos Figueiredo
Recently I received an article on my twitter timeline... about testing angular using his karma framework with sprockets... maybe can help you... http://sebastien.saunier.me/blog/2014/02/04/angular--rails-with-no-fuss.html

Re: [Rails] Ecommerce

2014-02-04 Thread Carlos Figueiredo
for iPhone On Tue, Feb 4, 2014 at 1:21 AM, Carlos Figueiredo carlos.figueired...@gmail.com wrote: Do you know about Spree? - https://github.com/spree/spree It's a ecommerce gem, and there are plenty of plugins on github... on a quick search I found a plugin for auctions... https

Re: [Rails] Ecommerce

2014-02-03 Thread Carlos Figueiredo
Do you know about Spree? - https://github.com/spree/spree It's a ecommerce gem, and there are plenty of plugins on github... on a quick search I found a plugin for auctions... https://github.com/puneetgupta/spree_auctions Maybe it can be what you are searching... Good luck, Carlos Figueiredo

Re: [Rails] How to configure Microsoft Exchange Server using ActionMailer

2013-11-22 Thread Carlos Figueiredo
For Exchange server, you need to follow the steps found in that mentioned blog. By default, Exchange server uses his own authentication protocol kerberos, not plain text... so you need to use :ntlm, not :login on authentication. You still can change this, but need to change the entire Exchange

Re: [Rails] Ruby on Rails Blogging for Newbies?

2013-11-21 Thread Carlos Figueiredo
I didn't understand exactly what you want... you want instructions to create or a that someone do it for you? If you just want know about a complete solution.. you can use a CMS... like RefineryCMS If you want learn how to do it... well... there are plenty of blogs and tutorials... and I can

Re: [Rails] Re: #5 Getting Up and Running

2013-11-21 Thread Carlos Figueiredo
or maybe you missed a step... creating a rails app... with the command rails new [app_name] that creates your aplication directory called [app_name] inside this directory that you run all the others steps... On Thu, Nov 21, 2013 at 8:54 PM, Frederick Cheung frederick.che...@gmail.com

Re: [Rails] Migrate postgresql database to uuid

2013-10-25 Thread Carlos Figueiredo
Uuids. Atenciosamente, *Carlos Figueiredo* On Fri, Oct 25, 2013 at 11:17 AM, kingston jenorish.s jenorishs...@gmail.com wrote: Hi all, I am using rails 3.1 and ruby 1.9.3,Now i want to use uuid concept in rails 3 for existing data so i did like :- create_table :posts, :id = false do

Re: [Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Carlos Figueiredo
Try rename your file to bla_spec.rb Atenciosamente, *Carlos Figueiredo* On Sat, Oct 12, 2013 at 11:33 PM, Peter pe...@poproj.com wrote: Hello Everyone, Could anyone tell me why my spec/features are not being read? Ruby 2.0 Rails 4.0 Rspec 2.14.0 capybara 2.1.0 It is a fresh 'rails

Re: [Rails] Re: Gentoo for Rails?

2013-09-30 Thread Carlos Figueiredo
It's possible to use even on Windows... I dont know which kind of package managrr gentoo uses (apt, rpm, tarball only) but even if you dont had any... You could just install git and pull the sources of ruby or rails and install them... It could be a bit painfull but possible Em 30/09/2013 06:35,

Re: [Rails] Re: Validations not working on complex DB transaction

2013-08-06 Thread Carlos Figueiredo
Yeah, It's exactly that... you are creating a user before the Institution... But I your controller isn't searching for some Institution while creating the User... I just see your controller creating an Institution... doesn't matter if already exists... *Carlos Figueiredo* On Tue, Aug 6, 2013

Re: [Rails] Using :group with #count generating bad SQL in Postgres

2013-07-24 Thread Carlos Figueiredo
Now I figured out what is the error... I dont know why... But rails changed the column name where you count froum comments_count to count_all... And you refer it on your order by statement using the alias you choose... I hope somone more experienced on rails help you fix it, but for now... U could

Re: [Rails] Using :group with #count generating bad SQL in Postgres

2013-07-24 Thread Carlos Figueiredo
, Carlos Figueiredo carlos.figueired...@gmail.com escreveu: Now I figured out what is the error... I dont know why... But rails changed the column name where you count froum comments_count to count_all... And you refer it on your order by statement using the alias you choose... I hope somone more

Re: [Rails] Using :group with #count generating bad SQL in Postgres

2013-07-23 Thread Carlos Figueiredo
Your query is wrong... You need group all columns you show that arent the result of an aggregate function... So your group would be group('titles.*') Em 22/07/2013 18:22, yaw yawboaky...@gmail.com escreveu: Rails 4.0.0, Ruby 2.0 class Title ... ... has_many :comments def

Re: [Rails] Using :group with #count generating bad SQL in Postgres

2013-07-23 Thread Carlos Figueiredo
BY comments_count DESC Atenciosamente, *Carlos Figueiredo* On Tue, Jul 23, 2013 at 1:48 PM, Yaw Boakye elGran yawboaky...@gmail.comwrote: Can you write the right (no pun intended) query here? Thanks On Tue, Jul 23, 2013 at 12:36 PM, Carlos Figueiredo carlos.figueired...@gmail.com wrote

Re: [Rails] Using :group with #count generating bad SQL in Postgres

2013-07-23 Thread Carlos Figueiredo
were your expected SQL to say that the result were malformed? Atenciosamente, *Carlos Figueiredo* On Tue, Jul 23, 2013 at 4:11 PM, Carlos Figueiredo carlos.figueired...@gmail.com wrote: def self.order_by_number_of_comments_descending select('titles.id, titles.name, titles.whatever, count