Re: [Rails] Rails 3.1.1 why public/system content is not transferred upon deployment

2011-10-20 Thread Peter De Berdt
On 21 Oct 2011, at 02:45, Roy Situmorang wrote: Well, the deployed files are only those included in repository. On Fri, Oct 21, 2011 at 5:35 AM, Erwin wrote: Testing locally I uploaded files into public/system/... folders ( default for Paperclip) Upon deployment ( capistrano) on the remote se

Re: [Rails] Re: will_paginate and checkboxes

2011-10-20 Thread Norbert Melzer
But if you handle the pagination client sided and have a table with a bazillion of entries then all the entries will be downloaded to the client bit your client will probably never go beyond the first couple of pages. Just think of this in a mail application where you are viewing a folder with 10k

[Rails] Re: Identify internet/intranet connection

2011-10-20 Thread Robert Walker
Klaus Fuchs wrote in post #1027695: > Is it possible to identify if someone is connecting my rails app through > the internet or an intranet? > I would like to enable web access only to a couple of users, others > should be able to login only when inside their intranet. Check the request object. S

[Rails] Identify internet/intranet connection

2011-10-20 Thread Klaus Fuchs
Is it possible to identify if someone is connecting my rails app through the internet or an intranet? I would like to enable web access only to a couple of users, others should be able to login only when inside their intranet. Thanks, Klaus -- Posted via http://www.ruby-forum.com/. -- You recei

[Rails] Re: RSpec 2 not working on Rails 3.1.1

2011-10-20 Thread Ron d.
I'm having this issue as well. Any thoughts on what the conflict is? -- 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 rubyonrails-talk@googlegroups.com. To un

Re: [Rails] Rails 3.1.1 why public/system content is not transferred upon deployment

2011-10-20 Thread Roy Situmorang
Well, the deployed files are only those included in repository. On Fri, Oct 21, 2011 at 5:35 AM, Erwin wrote: > Testing locally I uploaded files into public/system/... folders > ( default for Paperclip) > Upon deployment ( capistrano) on the remote server, I can see a > symlink from public/sys

[Rails] Rails 3.1.1 why public/system content is not transferred upon deployment

2011-10-20 Thread Erwin
Testing locally I uploaded files into public/system/... folders ( default for Paperclip) Upon deployment ( capistrano) on the remote server, I can see a symlink from public/system to the shared/system/ but the content ( all images ) is not transferred I had to do it myself via ftp .. Is i

Re: [Rails] Re: Alternatives to 'SET' data type

2011-10-20 Thread Philip Hallstrom
On Oct 20, 2011, at 12:23 PM, Colin Law wrote: > On 20 October 2011 18:14, Robert Walker wrote: >> Peter Hicks wrote in post #1027558: >>> I have some data that could be a combination of around 30 values. >>> Typical >>> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil. >>> >>> Id

[Rails] Re: Access other model attributes directly with has_one, belongs_to ?

2011-10-20 Thread Marli Ba
Thanks, I think that is what I'm looking for! -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this gro

[Rails] Re: Access other model attributes directly with has_one, belongs_to ?

2011-10-20 Thread Tim Shaffer
I think what you're looking for is "delegate" which is a rails extension to Module: http://api.rubyonrails.org/classes/Module.html#method-i-delegate class ModelC < ActiveRecord::Base has_many :model_a end class ModelA < ActiveRecord::Base belongs_to :model_c delegate :version, :to => :mod

Re: [Rails] Re: Alternatives to 'SET' data type

2011-10-20 Thread Colin Law
On 20 October 2011 18:14, Robert Walker wrote: > Peter Hicks wrote in post #1027558: >> I have some data that could be a combination of around 30 values. >> Typical >> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil. >> >> Ideally, I'd use the SET data type in PostgreSQL, but Active

[Rails] Access other model attributes directly with has_one, belongs_to ?

2011-10-20 Thread Marli Ba
So, I have 2 models A and B that share 5 common attributes and all other attributes are different. So I wanted to extract these 5 out into one common table and use has_one, belongs_to to knit it back together. So now there are 3 tables with 1 having the shared properties, we'll call this table C.

[Rails] Re: Alternatives to 'SET' data type

2011-10-20 Thread Robert Walker
Peter Hicks wrote in post #1027558: > I have some data that could be a combination of around 30 values. > Typical > values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil. > > Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord > doesn't > appear to support[1] this. More spe

[Rails] [Resume] Ruby on Rails Developer, NYC

2011-10-20 Thread OSS
Hi everyone and sorry to bother you, but I've got a great Ruby / Rails Developer seeking full time work in New York City. If anyone would like to see his resume, please email me at opensourcestaffing\AT \gmail.com -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Rails 3 - Make a “link_to” using selected value from collection select

2011-10-20 Thread Angelo Cordova
Great!!! Thanks for your help On 19 oct, 21:44, Walter Lee Davis wrote: > On Oct 19, 2011, at 4:14 PM, Angelo Cordova wrote: > > > > > > > > > > > > > Hello everyone. > > > I have a form in my ruby 1.9.2 rails 3.0.9 app, and one of the fields > > is a "collection select" like this > > > > > <%=

Re: [Rails] Re: Generate model from database

2011-10-20 Thread Noel
On Thu, Oct 20, 2011 at 8:20 AM, genterminl wrote: > Tim, > > Thanks.  That looks like exactly what I need to get started.  I'm simply not > familiar enough yet with ruby or rails to have come up with that from > scratch myself, but I can certainly use it and modify it to handle the > naming conve

[Rails] Re: Agile book apache2.conf: Forbidden You don't have permission to access / on this server.

2011-10-20 Thread Nathan Wu
try this AllowOverride None and put index.html in this dir /home/railsapps/rails_3/depot/public/ then access index.html page On Oct 20, 9:17 pm, akkdio wrote: > Appreciate any help - > > I am working through Agile web development (4.0) and am stuck on the > deployment using phusion passenger.  I

[Rails] Re: Generate model from database

2011-10-20 Thread genterminl
Tim, Thanks. That looks like exactly what I need to get started. I'm simply not familiar enough yet with ruby or rails to have come up with that from scratch myself, but I can certainly use it and modify it to handle the naming conventions in my existing schema. Now I have to go back to wo

[Rails] Re: Alternatives to 'SET' data type

2011-10-20 Thread Colin Law
On 20 October 2011 15:53, Peter Hicks wrote: > On Thu, Oct 20, 2011 at 01:24:24PM +0100, Colin Law wrote: > >> In any case you should not worry about efficiency at this stage. >> Start with the most straight forward design and *if* performance >> becomes an issue then optimise it later.  I can vir

[Rails] Re: will_paginate and checkboxes

2011-10-20 Thread CavalryJim
On Oct 19, 2:22 pm, mdfdroid wrote: > Ok so I solved my problem by creating two  divs on the page.  A table > on the left that is paginated and has ajax search for assigning > issues.  Then another table on the right that just shows assigned > issues.  I have jquery watch for check box clicks and

[Rails] Re: Generate model from database

2011-10-20 Thread Tim Shaffer
Well you don't exactly have to do it by *hand*. It's pretty easy to write a script to generate the command for you. Just change table_name to whatever your model is... table_name = "Post" output = [ "rails g scaffold #{table_name} --skip-migration" ] ignore_columns = [ 'id', 'created_at', 'updat

[Rails] Re: Re: Cucumber installation problem

2011-10-20 Thread Mathew Birch
Okay I managed to install cucumber but faced another problem when i tried to install cucumber-rails. My cmd shows: C:\Users\Mathew>gem install cucumber-rails Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing cucumber-r

Re: [Rails] Re: Cucumber installation problem

2011-10-20 Thread Javier Quarite
Have you tried http://railsinstaller.org/? I used that on windows, but I prefer rails on ubuntu maybe in the future I'll buy a mac :D On Thu, Oct 20, 2011 at 8:29 AM, Luis Lavena wrote: > On Oct 20, 2:23 pm, Mathew Birch wrote: > > Hi to all, > > > > I have managed to install many gems but

[Rails] Re: Cucumber installation problem

2011-10-20 Thread Luis Lavena
On Oct 20, 2:23 pm, Mathew Birch wrote: > Hi to all, > > I have managed to install many gems but cant seem to be able to install > Cucumer. It produces the error that system cannot find the path > specified. I am using Ruby 1.9.2 on windows 7. I tried installing > gherkin and the same error occurr

[Rails] Agile book apache2.conf: Forbidden You don't have permission to access / on this server.

2011-10-20 Thread akkdio
Appreciate any help - I am working through Agile web development (4.0) and am stuck on the deployment using phusion passenger. I get this: "Forbidden You don't have permission to access / on this server." when I put depot.yourhost.com in the browser. I have been through various web searches

[Rails] Re: Re: Cucumber installation problem

2011-10-20 Thread Mathew Birch
Colin Law wrote in post #1027583: > > Ah, you are on Windows, sorry I don't know then. Someone else? > > By the way, rails development is much easier on Ubuntu (or similar) or > Mac. > > Colin I tried using ubuntu as its also installed on my computer but i couldn't get the rails server running p

Re: [Rails] Re: Cucumber installation problem

2011-10-20 Thread Colin Law
On 20 October 2011 13:50, Mathew Birch wrote: > C:\Users\Mathew\Downloads>gem install gherkin > Temporarily enhancing PATH to include DevKit... > Building native extensions.  This could take a while... > The system cannot find the path specified. > ERROR:  Error installing gherkin: >        ERROR:

[Rails] Re: Cucumber installation problem

2011-10-20 Thread Mathew Birch
C:\Users\Mathew\Downloads>gem install gherkin Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... The system cannot find the path specified. ERROR: Error installing gherkin: ERROR: Failed to build gem native extension. C:/Ruby192

Re: [Rails] Cucumber installation problem

2011-10-20 Thread Colin Law
On 20 October 2011 13:23, Mathew Birch wrote: > Hi to all, > > I have managed to install many gems but cant seem to be able to install > Cucumer. It produces the error that system cannot find the path > specified. I am using Ruby 1.9.2 on windows 7. I tried installing > gherkin and the same error

[Rails] Re: Active Record Model From Legacy query

2011-10-20 Thread Matt Jones
On Oct 18, 8:55 pm, Dale Ackerman wrote: > I have a situation where I have some legacy tables that have what I > will call conditional relations.  One table is a log and has actions > and action_notes columns if the action is a certain number(value) the > the contents of the action_notes will be

Re: [Rails] Alternatives to 'SET' data type

2011-10-20 Thread Colin Law
On 20 October 2011 11:46, Peter Hicks wrote: > All, > > I have some data that could be a combination of around 30 values.  Typical > values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil. > > Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord doesn't > appear to support[1]

[Rails] Cucumber installation problem

2011-10-20 Thread Mathew Birch
Hi to all, I have managed to install many gems but cant seem to be able to install Cucumer. It produces the error that system cannot find the path specified. I am using Ruby 1.9.2 on windows 7. I tried installing gherkin and the same error occurred. I managed to install other gems such as rails,

[Rails] rspec-core 2.7.1 is released!

2011-10-20 Thread David Chelimsky
rspec-core 2.7.1 is released! ### rspec-core-2.7.1 / 2011-10-20 [full changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1) * Bug fixes * tell autotest the correct place to find the rspec executable -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: Runtime error.

2011-10-20 Thread Tsolmon Narantsogt
Thanks all. This problem is solved. Regards Tsolmon , Leoncio Caminha wrote: > thats right its a gem versiion problem, downgrade it > > Enviado via iPad > > Em 20/10/2011, às 07:04, Gautam Rege escreveu: > > Just upgrade to the latest edge Rails version to anything >= v2.3.10. This > solves th

[Rails] Re: [Beginner] fields_for within each loop

2011-10-20 Thread Hakjune Kim
Thank you Fred for another reply. But having relationship report->question->answer will lead to unnecessary generation of the question per each report. In my case, question is same for all reports. Could you please guide me what I should do then? I feel like I'm stuck in db model now. Your adv

[Rails] Alternatives to 'SET' data type

2011-10-20 Thread Peter Hicks
All, I have some data that could be a combination of around 30 values. Typical values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil. Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord doesn't appear to support[1] this. More specifically, I can run a migration on my dev

Re: [Rails] Re: Runtime error.

2011-10-20 Thread Leoncio Caminha
thats right its a gem versiion problem, downgrade it Enviado via iPad Em 20/10/2011, às 07:04, Gautam Rege escreveu: > Just upgrade to the latest edge Rails version to anything >= v2.3.10. This > solves the problem. (There is a 'threads' dependency in the stack which > causes this error). >

Re: [Rails] Re: Runtime error.

2011-10-20 Thread Gautam Rege
Just upgrade to the latest edge Rails version to anything >= v2.3.10. This solves the problem. (There is a 'threads' dependency in the stack which causes this error). If you cannot upgrade your Rails version, you would need to downgrade the gem version. Cheers! - Gautam On Thu, Oct 20, 2011 at 2

Re: [Rails] Re: Runtime error.

2011-10-20 Thread Tsolmon Narantsogt
Sorry . My gem list is. -- abstract (1.0.0) actionmailer (3.0.9, 2.3.5) actionpack (3.0.9, 2.3.5) activemodel (3.0.9) activerecord (3.0.9, 2.3.5) activeresource (3.0.9, 2.3.5) activesupport (3.0.9, 2.3.5) arel (2.0.10) Ascii85 (1.0.1) bcrypt-ruby (3.0.0) builder (3.0.0,

[Rails] Re: fields_for within each loop

2011-10-20 Thread Frederick Cheung
On Oct 20, 3:32 am, Hakjune Kim wrote: > > def new > ... > >   QuestionSingle.each do |qs| >     report.answer_singles.build ... >   end > > so answer_single generated as many as questions. > > So when I call answer_singles in the fields for it calls every > answer_singles generated. > > >     <

[Rails] Re: Generate model from database

2011-10-20 Thread Doug
On Oct 19, 4:16 pm, genterminl wrote: > The whole point is I have lots of tables with lots of columns, and I don't > want to have to do all that typing.  The magic_model_generator creates all > the model files, and it can obviously see all the columns in the database, > I'm just surprised that n

[Rails] Re: Runtime error.

2011-10-20 Thread Doug
On Oct 19, 12:01 pm, Tsolmon Narantsogt wrote: > Hello everybody. > > I just upgrade my gem version 1.37 to 1.8.11. Then i run my project and got > a this error. > > START Error > - > Invalid gemspec in > [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date > form

[Rails] Fukuoka Ruby Night

2011-10-20 Thread Ruzody
Ruby event on November 3, 2011 at MacKenzie Room, Stanford University. Program will include, 1) keynote speeches by Yukihiro “Matz” Matsumoto and Derek Collison, CTO, VMware Inc. and 2)Silicon Valley Ruby Innovator Award Competition, a preliminary competition for the 2012 Fukuoka Ruby Award. Plea

[Rails] Re: Jquery AJAX not working with session It is not taking old session.

2011-10-20 Thread subbarao
I got solution we need to add below code in your header javascript, which tells use browser cookie in server externally ### $(document).ajaxSend(function(e, xhr, options) { var token = $("meta[name='csrf-token']").attr("content"); xhr.setRequestHeade