[Rails] How to start new pages automatically whenever the text string cannot fit on the current page in praw

2014-01-16 Thread DHEERAJ CHILAPPAGARI
I am trying to generate a PDF invoice using prawn with header, body and footer. The content of the body may change. I'm using bounding_box to place content in the body. If the content cannot fit on the current page body, it should automatically place the remaining content in body portion of the

[Rails] Re: Unpermitted Parameters 500 error

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 2:37:35 AM UTC, Taylor Griffin wrote: I have some models with lots of deeply nested attributes. Before when I saved these models using update_attributes, I had no problems, but I recently updated to Rails 4 and started using strong parameters. Now I'm

[Rails] How to know which gem version to install (Rails 3.2)

2014-01-16 Thread James Davis, PhD
Look up the gem on rubygems.org. Start with the latest version and inspect the dependencies to ensure it matches your environment. If needed, select an earlier version. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe

Re: [Rails] How to start new pages automatically whenever the text string cannot fit on the current page in praw

2014-01-16 Thread Rob Biedenharn
On 2014-Jan-16, at 04:45 , DHEERAJ CHILAPPAGARI dheeru.manth...@gmail.com wrote: I am trying to generate a PDF invoice using prawn with header, body and footer. The content of the body may change. I'm using bounding_box to place content in the body. If the content cannot fit on the current

[Rails] Rails 4 Devise and send_data with ActionController::Live

2014-01-16 Thread R. Francky
Hi my friends, Recently I was setting up a Rails 4 app and did some server sent event within. 1/ There was a bug when I did the usual before_filter :authenticate_user as long as I include ActionController::Live module in any controller class. I ended up moving auth logic in the routes with

[Rails] Re: Add List to List

2014-01-16 Thread R. Francky
Which list would you mean ? Are you talking about ruby collection or HTML list ? On Wednesday, January 15, 2014 8:12:36 AM UTC+3, meva soa wrote: Hi Buddy :) Please, someone can explain me how can I *add a list of objects to the another list.* Thank you guys ! -- You received this

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
Fred - pricing_extensions lives in the test_company_libs Gem's lib/tc_libs folder. I'm not sure how to add this to the ruby load path and I'm a bit confused that I would have to because we use the test_company_libs Gem in nearly every project we have and we don't have to 'tweak' anything to

Re: [Rails] JOB

2014-01-16 Thread Dave Aronson
On Wed, Jan 15, 2014 at 8:15 PM, mary yang msmaril...@gmail.com wrote: I am looking for a ruby on rails developer in the NY/ NJ area. I have a company website that needs to be created. anyone have any leads? On the upside for both you and us Rails-folk: try broadening your search. There is

Re: [Rails] JOB

2014-01-16 Thread Evaldo Santos
I'm from Brazil. I want to work in a project. I have +2 years working in web projects with php/ruby/python. Att. Evaldo Santos On Wed, Jan 15, 2014 at 10:15 PM, mary yang msmaril...@gmail.com wrote: Hi, I am looking for a ruby on rails developer in the NY/ NJ area. I have a company website

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 3:21:25 PM UTC, Ruby-Forum.com User wrote: Fred - pricing_extensions lives in the test_company_libs Gem's lib/tc_libs folder. In that case you would do require 'tc_libs/pricing_extensions' Fred I'm not sure how to add this to the ruby load path and

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
I initially tried that and got: `require': cannot load such file My question is, does adding gem 'test_company_libs', :git = 'g...@github.com:test_company/test_company-libs.git', :require = false to the Gem's Gemfile and doing a bundle install, ensure that gem's code can be referenced at

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
I should also point out that test_comany_lib's PricingExtension is a module: module PricingExtensions -- 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 unsubscribe from this group and stop

[Rails] Problem testing ajax func call via member routes

2014-01-16 Thread arca0
Hi, I'm having a problem writing a proper test for an exercise from Agile Web Development with Rails 4.0. The exercise was about creating a member route, which was then used via ajax to decrement an cart item (ListItem) attribute, eventually destroying it when it hits 0. The route I wrote is:

[Rails] net/ping now working

2014-01-16 Thread Miguel Tubia
Hi, i'm developing a application using Rails 4. In my model I have a method where i make a ping to a host on my network. I'm using 'net-ping' gem, declared in gemFile, and Rails Server starts OK. Well, when i use the gem, as in another apps on Ruby, I do: Net::Ping::External.new @name But i

[Rails] RubyZip zip file creation works on localhost but not heroku

2014-01-16 Thread Steven Harlow
I have rubyzip 0.9.9 and am creating a zip file like so: Zip::ZipFile.open(zip_path, Zip::ZipFile::CREATE) do |zipfile| #code goes here end When I give it a zip path like this: zip_path = File.join(Rails.root, /tmp/zips/#{zip.id}.zip) , it works fine locally, but not on heroku. On

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 6:12:58 PM UTC, Ruby-Forum.com User wrote: I initially tried that and got: `require': cannot load such file My question is, does adding gem 'test_company_libs', :git = 'g...@github.com:test_company/test_company-libs.git', :require = false

[Rails] Re: RubyZip zip file creation works on localhost but not heroku

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 5:55:18 PM UTC, Steven Harlow wrote: I have rubyzip 0.9.9 and am creating a zip file like so: Zip::ZipFile.open(zip_path, Zip::ZipFile::CREATE) do |zipfile|     #code goes here end When I give it a zip path like this:  zip_path = File.join(Rails.root,

[Rails] some idea about ruby on rails plz

2014-01-16 Thread kalikzrtr
i want to create a free loterie on line and i have some question plz help me i want an idea about how to do this 10 free ticket per day? how to have information from action script 3? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To