Re: [Rails] How to Include Gem in Different Path

2012-08-17 Thread Himanshu Prakash
Hi Bill, either you can- include the path (where your gem is installed) into your system's PATH variable. OR install the gem into specified locationi.e.- /home/username/myapp Thanks, Himanshu On Sat, Aug 18, 2012 at 3:59 AM, Admin Tensor wrote: > Hi,

[Rails] Paperclip images are not stored in my directory

2012-08-17 Thread Maddy
It is my User.rb model, My images are not stored in my assets directory.. has_attached_file :photo, :styles => { :small => "100x100#", :large => "500x500>", :thumb => "60x60>" }, :url => "/assets/users/:id/:style/:basename.:extension", :path => ":rails_roo

[Rails] Re: undefined method `with_indifferent_access' for "":String

2012-08-17 Thread arturo drlt
UPDATE code: collection_select(:comp, :comp_emi_reg_ids, CompEmiReg.where("comp_id = ?", @comp.id), :id, :reg_fil, {:include_blank => false}) return this error NoMethodError (undefined method `with_indifferent_access' for "":String): and this code: collection_select(:comp, :comp_emi_reg_id

[Rails] How to Include Gem in Different Path

2012-08-17 Thread Admin Tensor
Hi, I just tried Ruby on Rails (with RailsInstaller 2.1.0) and it works fine on my PC. However, when I put this on the website, I got the following error message: Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound) The problem is that the website has multi_json 1.0.4.

[Rails] Re: undefined method `with_indifferent_access' for "":String

2012-08-17 Thread arturo drlt
Sorry i wrote a wrong error the collection_select return this error undefined method `comprobante_emis_regs_reg_fil' for # collection_select(:comp, :comp_emis_regs_regimen_fiscal, current_contribuyente.contribuyente_regs, :reg_fil, :reg_fil, {:include_blank => false}) -- Posted via http://w

[Rails] iterate through a multi dimensional hash

2012-08-17 Thread Sam Ginko
The problem I'm having is that I need to extract the value of amazon and chef separately. Right now they are both held in the b value in my iteration. I tried to create another loop within the value.each but i'm getting an error. How do I efficiently extract both value separately and efficiently?

Re: [Rails] Re: Passing array of objects to javascript

2012-08-17 Thread Dave Aronson
On Fri, Aug 17, 2012 at 2:56 PM, Jason Walsh wrote: > Think i've find a solution using good old google - like you suggest > using object.to_json to create a data attribute on a div looks the way > to go. Using a data attribute on a div could work. Or you could make it the contents of a hidden d

[Rails] Re: undefined method `with_indifferent_access' for "":String

2012-08-17 Thread arturo drlt
Peter p. wrote in post #1072655: > arturo drlt wrote in post #1072587: > > > > Hi arturo drlt, > > Try without "fields_for" > It really works! ;-) > > Regards, > Peter > ***

[Rails] Re: Passing array of objects to javascript

2012-08-17 Thread Jason Walsh
Dave Aronson wrote in post #1072670: > On Thu, Aug 16, 2012 at 6:23 AM, Jason Walsh > wrote: > >> I am looking for the best way to get an array of objects from the >> database, pass them to the view in an instance variable, then make the >> array available to a javascript attached to the view. > >

Re: [Rails] Re: Re: Friendship System Rails 3.0

2012-08-17 Thread Colin Law
On 17 August 2012 17:01, Jean-Sébastien D. wrote: > Colin Law wrote in post #1072687: >> >> I doubt whether anyone has time to wade through all that code in order >> to understand your problem (though I may be proved wrong). You must >> try to ask a more specific question. >> >> Colin > > I under

[Rails] Re: Error calling Dispatcher.dispatch

2012-08-17 Thread Math-Moi Math-Moi
I already posted my problem on Vlexo Forums, but no one is skilled enough with Ruby or Rails. I thought that I could get some help on a Ruby forum. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

Re: [Rails] Re: Error calling Dispatcher.dispatch

2012-08-17 Thread Colin Law
On 17 August 2012 16:45, Math-Moi Math-Moi wrote: > I registered to Vlexo hosting. In the cPanel, you can create a Rails > app, so I know it supports Rails. > > I am new to web hosting, sorry if I am not clear enough. Since I am not > managing my own server, I don't know all the configuration deta

[Rails] Re: Re: Friendship System Rails 3.0

2012-08-17 Thread Jean-Sébastien D.
Colin Law wrote in post #1072687: > > I doubt whether anyone has time to wade through all that code in order > to understand your problem (though I may be proved wrong). You must > try to ask a more specific question. > > Colin I understand and didn't want at first because its a lot of code, but

Re: [Rails] Re: Friendship System Rails 3.0

2012-08-17 Thread Colin Law
On 17 August 2012 16:36, Jean-Sébastien D. wrote: > ... > Sorry for the late reply, after notice I did change many thing. ( redid > from scracth) > > So here an updated code > [massive snip] I doubt whether anyone has time to wade through all that code in order to understand your problem (though

[Rails] Re: Error calling Dispatcher.dispatch

2012-08-17 Thread Math-Moi Math-Moi
I registered to Vlexo hosting. In the cPanel, you can create a Rails app, so I know it supports Rails. I am new to web hosting, sorry if I am not clear enough. Since I am not managing my own server, I don't know all the configuration details nor the way everything was installed. I suppose that

[Rails] Re: routes for new resources

2012-08-17 Thread John Merlino
actually, let me rephrase this. That route points to the preview action of a reports controller, but why is it a POST for a new resource? On Aug 17, 11:32 am, John Merlino wrote: > Does anyone know what the controller code would look like for a route > like this: > > resources :reports do >   new

[Rails] Re: Friendship System Rails 3.0

2012-08-17 Thread Jean-Sébastien D.
Jason Fb wrote in post #1072573: > You seem to have defined @customer twice, once in the setup_friends > method which is run first as a before_filter hook, and then again in the > index method. the one in the index method returns an array, since you > asked for @customer.all Sorry for the late rep

Re: [Rails] Re: Error calling Dispatcher.dispatch

2012-08-17 Thread Colin Law
On 17 August 2012 13:39, Math-Moi Math-Moi wrote: > I meant the server I joined. I am not managing it myself, so I don't > know the configuration details. How do you know it is setup for rails then? I am not sure what you mean by joining a server. Colin > > -- > Posted via http://www.ruby-foru

Re: [Rails] Re: Re: Re: Re: trouble with new app in rails

2012-08-17 Thread Colin Law
On 17 August 2012 12:37, Sebastjan H. wrote: > ANIKET KADAM wrote in post #1072629: >> which tutorial are you following? > > the one you posted from sudobits. > If this is regarding my last post which I have already deleted, the bad > interpreter error occurs every time I start my computer. If I l

[Rails] routes for new resources

2012-08-17 Thread John Merlino
Does anyone know what the controller code would look like for a route like this: resources :reports do new do post :preview end end and a helper that looks like this: preview_new_report_path thanks for response -- You received this message because you are subscribed to the Google Grou

Re: [Rails] [RAILS] Caching photo by URL

2012-08-17 Thread Colin Law
On 17 August 2012 11:23, Everett wrote: > Hye Colin ! > Firstly thank you for your answer ! > I try to caching my pictures on my app serv on the public folder of my rails > app, i'll create a sub folder cache.{id-user} > I launch a function which return me a array of url, like that > "http://www.b

Re: [Rails] Re: Rails doesn't validate create_model or build_model (has_one association)

2012-08-17 Thread Colin Law
On 17 August 2012 11:07, network DB wrote: > Colin Law wrote in post #1072628: >> On 17 August 2012 01:30, network DB wrote: >>> I've got User has_one Shop. Rails is not validating when I tried >>> create_shop or build_shop, neither in the browser nor the rails console. >> >> Those methods create

Re: [Rails] Thumbnails create of upload image

2012-08-17 Thread Colin Law
On 17 August 2012 07:45, harshad wrote: > Hi, > > I have a issue to create thumbnail of uploaded image without using any > libraries like paperclip or any other.. Why not? > > I can't find any solutions which create thumbnail without using any > libraries.. > > Any one have a solutions then plea

Re: [Rails] Slow ActiveRecord

2012-08-17 Thread Dave Aronson
On Mon, Aug 13, 2012 at 5:16 AM, ngw wrote: > The query on PostgreSQL takes 22ms to complete, > but the page is taking 21 seconds to render. Is that from submission to completion, or specifically the rendering, after the controller has gathered all the data, done any processing needed, and passe

Re: [Rails] Passing array of objects to javascript

2012-08-17 Thread Dave Aronson
On Thu, Aug 16, 2012 at 6:23 AM, Jason Walsh wrote: > I am looking for the best way to get an array of objects from the > database, pass them to the view in an instance variable, then make the > array available to a javascript attached to the view. What part are you having trouble with? What ha

[Rails] Re: Error calling Dispatcher.dispatch

2012-08-17 Thread Math-Moi Math-Moi
I meant the server I joined. I am not managing it myself, so I don't know the configuration details. -- 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 post to this group, send email to rubyonr

[Rails] Re: Re: Re: Re: trouble with new app in rails

2012-08-17 Thread Sebastjan H.
ANIKET KADAM wrote in post #1072629: > which tutorial are you following? the one you posted from sudobits. If this is regarding my last post which I have already deleted, the bad interpreter error occurs every time I start my computer. If I load the RVM via source ~/.rvm/scripts/rvm then it wo

[Rails] Re: undefined method `with_indifferent_access' for "":String

2012-08-17 Thread Peter p.
arturo drlt wrote in post #1072587: > Hi > > I'm having a issue with one object when try to update the attributes in > this object previously saved in the database > > I have one object comp and one object reg they have this relationship > > comp > > has_many regs > > reg > > belongs_to comp > > wh

[Rails] Re: Activemerchant rails 3.1 wrong number of arguments

2012-08-17 Thread Clickme t.
John Butler wrote in post #1032006: > Hi, > > Ive followed the railscasts to integrate paypal express and > activemerchant on rails 2.5 without any issues > http://railscasts.com/episodes/146-paypal-express-checkout. > > When using the same code in a rails 3.1 app i get the following error > below,

Re: [Rails] [RAILS] Caching photo by URL

2012-08-17 Thread Everett
Hye Colin ! Firstly thank you for your answer ! I try to caching my pictures on my app serv on the public folder of my rails app, i'll create a sub folder cache.{id-user} I launch a function which return me a array of url, like that "http://www.bytebob.com/images/ruby.png"; and in my view I do a

[Rails] Re: Rails doesn't validate create_model or build_model (has_one association)

2012-08-17 Thread network DB
Colin Law wrote in post #1072628: > On 17 August 2012 01:30, network DB wrote: >> I've got User has_one Shop. Rails is not validating when I tried >> create_shop or build_shop, neither in the browser nor the rails console. > > Those methods create the object but do not save it (see section > 4.1.1

[Rails] Re: [JOB] Seeking Ruby on Rails Dev. for ongoing part time development!

2012-08-17 Thread Asim Raval
Hello, This is Asim, and through this email I would like to explore possible opportunities for Mobile and Web Development. We are software firm engaged in providing customized solutions for Mobile Applications Which includes developing applications in Blackberry ( Including OS10 ), iPhone and An