[Rails] Re: Agloco online jobs and work at home and work from home india

2012-10-01 Thread Bahar P.
Hi,I heard about your website and I only searched by google to see what is it.I was asked to logged in, so as I have Yahoo Email address,I logged in.Well I know nothing about your website, I only read this page, then I'm asked to reply! I really don't know what should I write and what is this

[Rails] Run ruby web app from command line

2012-10-01 Thread Sta Canovist
Hello I made a quite simple ruby web app. It uses scrubyt and mysql to store results as cached results. The program is quite simple. It shows a form, you enter a value and the controller makes an external http call, parse the data and show the result for the user. But I have a problem. I have

[Rails] How to properly setup multiple databases?

2012-10-01 Thread Bradford Smith
I've setup my application to connect to multiple databases, but am running into a few issues in production. I also have a few questions. First, I'm using rails 3-2-stable, because I was running in to a prepared statement bug, which is only fixed in this branch [1]. I'm not up for using

[Rails] Protecting certain model attributes from being exposed in an API

2012-10-01 Thread Jeremy Baker
In my current project, there are business and security requirements that prevent certain values from being exposed. I was looking for a way to specify which attributes in a model should be protected. This is what I've come up with and I would love feedback as to whether or not it's a valid

[Rails] Re: Best Practices for Multiple site One login

2012-10-01 Thread thansika malar
Loginbuilder.com offers Single Sign On (SSO) service for multiple website owners. Make use of this service to give your users share one login to use all your websites. User details maintenance is made easier here. -- You received this message because you are subscribed to the Google Groups

[Rails] Rails 3: create input field for each element of a collection (MongoID)

2012-10-01 Thread Michael Imstepf
Hi all, I have two models, Item and Bid class Item include Mongoid::Document field :name, type: String has_many :bids end class Bid include Mongoid::Document include Mongoid::Timestamps::Created field :bid, type: Float belongs_to :item end In views/prices/index I

Re: [Rails] RVM settings lost after every logout

2012-10-01 Thread gsw
Something else to consider is whether you are running the config that you assume that you are. Trying putting an echo into the startup script that contains the RVM setup, like getting ready to load RVM..., then look into what shell you are using, which script is being used depending on whether

[Rails] can I have more then 1 dynamic area

2012-10-01 Thread roelof
Hello, As a first project I will try to convert this site : http://www.tamarawobben.nl as a ruby on rails site. But now I wonder how I can make more then 1 dynamic area. So 1 area for the text, one for the recent posts and 1 for the menu. I know I can do that with one erea with yield but if I

Re: [Rails] Run ruby web app from command line

2012-10-01 Thread Fernando Almeida
http://guides.rubyonrails.org/command_line.html#rails-runner 2012/9/30 Sta Canovist stacanov...@gmail.com Hello I made a quite simple ruby web app. It uses scrubyt and mysql to store results as cached results. The program is quite simple. It shows a form, you enter a value and the

Re: [Rails] Run ruby web app from command line

2012-10-01 Thread Walter Lee Davis
On Sep 30, 2012, at 2:12 AM, Sta Canovist wrote: Hello I made a quite simple ruby web app. It uses scrubyt and mysql to store results as cached results. The program is quite simple. It shows a form, you enter a value and the controller makes an external http call, parse the data and show

Re: [Rails] Rails with Phusion Passenger and Apache

2012-10-01 Thread Mandeep Kaur
On Sun, Sep 30, 2012 at 4:13 AM, Norbert Melzer timmel...@gmail.com wrote: 2012/9/29 Mandeep Kaur meghasi...@gmail.com: snip Hint 7: Last but not least: Learn to use a deploy-tool like Capistrano or Vlad, it will make many things easier and do things automatically that I personally would

Re: [Rails] Rails with Phusion Passenger and Apache

2012-10-01 Thread Hassan Schroeder
On Mon, Oct 1, 2012 at 7:00 AM, Mandeep Kaur meghasi...@gmail.com wrote: Can I deploy app using Capistrano without Passenger? Yes. I have another question that using Passenger is correct option or not? It's just one of many options; the decision is yours. -- Hassan Schroeder

Re: [Rails] Rails with Phusion Passenger and Apache

2012-10-01 Thread Mandeep Kaur
On Mon, Oct 1, 2012 at 7:40 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, Oct 1, 2012 at 7:00 AM, Mandeep Kaur meghasi...@gmail.com wrote: Can I deploy app using Capistrano without Passenger? Yes. Is there any drawback of using it? I have another question that using

Re: [Rails] Rails with Phusion Passenger and Apache

2012-10-01 Thread Hassan Schroeder
On Mon, Oct 1, 2012 at 7:16 AM, Mandeep Kaur meghasi...@gmail.com wrote: Can I deploy app using Capistrano without Passenger? Yes. Is there any drawback of using it? Not that I'm aware of. I have another question that using Passenger is correct option or not? It's just one of many

Re: [Rails] Rails with Phusion Passenger and Apache

2012-10-01 Thread Jordon Bedwell
On Mon, Oct 1, 2012 at 9:00 AM, Mandeep Kaur meghasi...@gmail.com wrote: On Sun, Sep 30, 2012 at 4:13 AM, Norbert Melzer timmel...@gmail.com wrote: Hint 7: Last but not least: Learn to use a deploy-tool like Capistrano or Vlad, it will make many things easier and do things automatically that I

[Rails] Re: LDAP gems: paged search with net-ldap

2012-10-01 Thread Jeff Lewis
Hi Adam, I haven't used net-ldap gem (I've always just used ruby-net-ldap gem for past several yrs for various projects), but ... Here's a link to the specific note in the current src regarding that setting: https://github.com/RoryO/ruby-net-ldap/blob/master/lib/net/ldap.rb#L1337 Jeff On

[Rails] Re: OLE2 signature is invalid

2012-10-01 Thread Damjan Rems
fahim patel wrote in post #1077636: I am getting this error while using spreadsheet_on_rails Are you opening xlsx files instead of xls? by TheR -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Can I have Ruby on Rails without json

2012-10-01 Thread roelof
Hello, On my Chakra linux machine the json gem would not get compiled, I already made a issue for that. But for continuing my project can I have ruby on rails without the json gem ? And if so, how can I do this ? Roelof -- You received this message because you are subscribed to the

[Rails] struct square brackets method used to instantiate?

2012-10-01 Thread John Merlino
I know that Struct class defines the [] instance method: 1.9.3p0 :014 Struct.instance_methods(false) = [:==, :eql?, :hash, :inspect, :to_s, :to_a, :values, :size, :length, :each, :each_pair, : [], : []=, :select, :values_at, :members, :pretty_print, :pretty_print_cycle, :as_json] This allows

Re: [Rails] struct square brackets method used to instantiate?

2012-10-01 Thread Ignacio Piantanida
2012/10/1 John Merlino stoici...@aol.com I know that Struct class defines the [] instance method: 1.9.3p0 :014 Struct.instance_methods(false) = [:==, :eql?, :hash, :inspect, :to_s, :to_a, :values, :size, :length, :each, :each_pair, : [], : []=, :select, :values_at, :members,

[Rails] How to edit each line of a file in ruby, without using a temp file

2012-10-01 Thread Nila
Hi, Is there a way to edit each line in a file, without involving 2 files? Say, the original file has, test01 test02 test03 I want to edit it like test01,a test02,a test03,a Tried something like this, but it replaces some of the characters. File.open('mytest.csv', 'r+') do |file|