[Rails] Shall I use Rails 4.x.x

2014-07-02 Thread Selvag Ruby
Hi, I'm using Ruby 1.9.3 for programming. I need to update Rails 3.2.6 to 4.x, which kind of version is comfortable with Ruby 1.9.3? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscrib

[Rails] [ANN] Rails 4.0.8 and 4.1.4 have been released!

2014-07-02 Thread Rafael Mendonça França
Hi everyone! Rails 4.0.8 and 4.1.4 have been released! The security patches introduced a regression on the PostgreSQL Range feature. This regression was only introduced to Rails 4.x. Rails 3.2 users are not impacted. the commits for 4.0.8 can be found [here]( https://github.com/rails/rails/compa

[Rails] Ruby developer job in a London startup

2014-07-02 Thread Olga Egorsheva
Hi, there! We are looking for a backend developer (future CTO) for Lobster ( http://ilobster.it). We believe that users’ social content (Instagram, Flickr, then Soundcloud, Devianart, Vimeo etc etc) should be treated with same respect as professional IP, and that people should be able buy

[Rails] Ruby language is now available on all the Skilleo code challenges!

2014-07-02 Thread João Ribeiro
Ruby language is now available on all the Skilleo code challenges! So, no more excuses if you are a Ruby developer. Join us! https://skilleo.me/challenges -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group an

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-02 Thread Liz Huang
Yes! passenger will start up according to the ownership of config.ru file (>rails 3, or environment.rb for rails 1 & 2) and has issue if it is owned by "nobody". I change ownership of config.ru file and it works now. Thanks a lot for your help! Now I can host single rails app, will need to figur

[Rails] [Sec ANN] Rails 3.2.19, 4.0.7 and 4.1.3 have been released!

2014-07-02 Thread Rafael Mendonça França
Hi everyone! Rails 3.2.19, 4.0.7 and 4.1.3 have been released! These three releases contain important security fixes, so please upgrade as soon as possible! In order to make upgrading as smooth as possible, we've only included commits directly related to each security issue. The security fix for

Re: [Rails] Re: Generate a PDF of a view in delayed job

2014-07-02 Thread Walther
Cool! I'll ponder over this 'till the morning (it's 7pm in Denmark and I'm late for my 30Rock) ;) Cheers Walther > Den 02/07/2014 kl. 18.36 skrev John Baycroft : > > Gotcha. > > Currently I am just using the PDFKit gem which, using middleware, > generates pdfs on the fly for all of my report

[Rails] Re: Generate a PDF of a view in delayed job

2014-07-02 Thread John Baycroft
Gotcha. Currently I am just using the PDFKit gem which, using middleware, generates pdfs on the fly for all of my reports. However, I need to make a background task(delayed job) in ruby that can go retrieve all of the pdfs and save them to Amazon s3. Trying to find the most straight forward so

Re: [Rails] Re: Generate a PDF of a view in delayed job

2014-07-02 Thread Walther
Oh - didn't know about that 'acts_like...' I built it myself (6-7 years ago on Rails 2.0.2 and Ruby 1.87-ish) and I don't store the pdf's - I build them on-the-zipper...ehh...fly ;) Cheers Walther > Den 02/07/2014 kl. 13.52 skrev John Baycroft : > > Walther, Thanks for your response. So just

[Rails] duplicate AR log messages when in console

2014-07-02 Thread S Ahmed
Hi, I'm using 4.1.1 When in console, whenever I make a AR query I see the same log message 2 times e.g. Loading development environment (Rails 4.1.1) 2.1.1 :001 > Category.find(2) *Category Load (0.9ms)* *SELECT "categories".* FROM "categories" WHERE "categories"."id" = $1 LIMIT 1* [["i

[Rails] Re: Bundler could not find compatible versions for gem "activesupport"

2014-07-02 Thread Frederick Cheung
On Wednesday, July 2, 2014 2:55:12 PM UTC+1, Alexander Timoshilov wrote: > > I tried to set up Searchlogic gem to my blog app and got an error: > Bundler could not find compatible versions for gem "activesupport": > In Gemfile: > searchlogic (~> 2.5.17) x86-mingw32 depends on > active

[Rails] Re: Active Record: Eager Loading (syntax question)

2014-07-02 Thread Frederick Cheung
On Wednesday, July 2, 2014 1:38:37 PM UTC+1, Ruby-Forum.com User wrote: > Now I learned from > http://guides.rubyonrails.org/active_record_querying.html , that this is > inefficient, due to the SELECT statements generated inside the block, > and that I should do "eager loading" instead. From my

[Rails] Bundler could not find compatible versions for gem "activesupport"

2014-07-02 Thread Alexander Timoshilov
I tried to set up Searchlogic gem to my blog app and got an error: Bundler could not find compatible versions for gem "activesupport": In Gemfile: searchlogic (~> 2.5.17) x86-mingw32 depends on activesupport (~> 2.3.12) x86-mingw32 rails (= 4.1.1) x86-mingw32 depends on activ

[Rails] [JOBS] Front End Work - CSS/SAAS/HAML/RAILS

2014-07-02 Thread Anthony Esper
Hi All, I'm looking for strong support in CSS/HAML/RAILS/SAAS. Need some PSD's broken down - have some excellent creative work done and custom fonts. - Should understand ruby on rails asset pipeline and if possible help with integration into current site. - Should enjoy HAML - Should devel

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-02 Thread Liz Huang
Yes, "nobody" is the owner and it seems to be a bug with Ruby. I will change the ownship of the rails project to see if it fixes the problem. Liz On Wednesday, July 2, 2014 8:16:25 AM UTC-4, Jim wrote: > > On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote: > > the error I got now s

[Rails] Active Record: Eager Loading (syntax question)

2014-07-02 Thread Ronald Fischer
Let's have model :parents and :children, where one parent can have many children, and that I want to do something like this: plist=Parent.joins(:children).select('*').where("parents.id=children.parent_id and children.cfield=#{...}") plist.each { |p| do_something_with(p,p.children) } Now I learne

[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3

2014-07-02 Thread Jim
On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote: the error I got now seem to be something different... > > integer 4294967294 too big to convert to `int' (RangeError) > /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in > `chown' > ... > > Who is the owner of you

[Rails] counting the result of a join

2014-07-02 Thread Ronald Fischer
I have in my model :dicts, :cards and :idioms. Each Dict has many Cards and each Cards has many Idioms. Also, :idioms has an Integer column :kind. I would like to find out, whether a certain dict object has at least one Card which has at least one Idiom where :kind has a certain value. This is

[Rails] Re: Generate a PDF of a view in delayed job

2014-07-02 Thread John Baycroft
Walther, Thanks for your response. So just so I am clear, I'd use "acts_like_flying_saucer" gem and itext? The one catch to this is I am using Heroku for my production environment so I need to have the files saves to Amazon S3. Is this possible with your proposed solutIon? -- Posted via http:

[Rails] Re: nokogiri missing libiconv error. Chapter 3 of RoR book tutorial

2014-07-02 Thread Ronald Fischer
Could it be that you are running OSX 10.6? I have the same problem, and already contacted the nokogiri supporters. At least on *this* OSX version. it doesn't work. I have also informed Michael Hartl to consider this in the next update of his tutorial. You will have to do without Capybara. --

[Rails] Re: deploying rails application with tomcat: URL

2014-07-02 Thread ruud
> I can't seem to figure out how I can change the port and the document root > (/invoices instead of /rails/invoices) in tomcat. > > Changing the port number can be done in the Connector element in server.xml By changing the name of rails.war (generated by warbler) into ROOT.war, the rails c

Re: [Rails] Generate a PDF of a view in delayed job

2014-07-02 Thread Walther
Use flying saucer with itext - that, and a html view does the trick for me :) Med venlig hilsen Walther > Den 02/07/2014 kl. 02.26 skrev John Baycroft : > > My goal is the create a model method that will generate a pdf of a > html.erb form as a delayed job task. > > What I have tried: > I have

[Rails] deploying rails application with tomcat: URL

2014-07-02 Thread ruud
hi, I have built a rails application with jruby. Since I have no experience with deploying a rails application in a production environment, I have spent some time doing a manual deployment on a linux server with tomcat6 as application server. In essence, I have made a war file of the rails app

[Rails] Re: Datamatrix generator

2014-07-02 Thread Miachael A.
I am having similar problems as yours but got no ideas. And I am recommended to use this .net datamatrix generator freeware: http://www.businessrefinery.com/products/barcode_net/net_barcode_generator.html However, I don't think my problem will be solved by this one. -- Posted via http://www.r