[Rails] route question

2011-12-19 Thread Tomasz Pajor
Hello, I have such route file https://gist.github.com/1494045 In view I want to create path /user/subscriptions/9 with link_to('Select', user_subscriptions_path(package), :method = :put, :class = 'upgrade'), but instead I'm getting /user/ subscriptions.9, can someone point what I'm doing wrong

[Rails] fixtures and validation

2011-12-19 Thread Chris Downey
Hello, I'm pretty new to Rails - very impressed not only by how much faster I can create working programs but also by how it helps me to think more clearly about design. What has me confused is why does the fixture loading process bypass model validation? There must be a good reason for this,

Re: [Rails] Displaying videos

2011-12-19 Thread Joshua Woodward-Clarke
I would sugest using DownloadHelper http://www.downloadhelper.net/ (firefox extention) or http://keepvid.com/ (online site) to download the files. Then probably FormatFactory http://www.formatoz.com/ for any converrsions that you need to do. On Fri, Dec 16, 2011 at 6:16 PM, Brynjolfur

Re: [Rails] route question

2011-12-19 Thread Colin Law
On 18 December 2011 18:07, Tomasz Pajor to...@wordwatch.com wrote: Hello, I have such route file https://gist.github.com/1494045 In view I want to create path /user/subscriptions/9 with link_to('Select', user_subscriptions_path(package), :method = :put, :class = 'upgrade'), but instead I'm

[Rails] Re: Heroku rails new ultradedup001

2011-12-19 Thread Frederick Cheung
On Dec 18, 4:23 pm, Ralph Shnelvar ral...@dos32.com wrote: FC Rails (deliberately) only allows access to the /rails/info controller FC when running in development mode. The rest of the time the route that FC would allow requests to reach it doesn't exist so going to /rails/info FC will 404.

Re: [Rails] fixtures and validation

2011-12-19 Thread Colin Law
On 19 December 2011 02:47, Chris Downey cdow...@gmail.com wrote: Hello, I'm pretty new to Rails - very impressed not only by how much faster I can create working programs but also by how it helps me to think more clearly about design. What has me confused is why does the fixture loading

[Rails] Heroku upload

2011-12-19 Thread Rodrigo Ruiz
Hi, I'd like some help to upload rails apps to multiple heroku accounts. I currently have my account configured in mac terminal, but I'm working on a job which the client will have the heroku account (but no computer configured). How do I upload a rails app I'm working on my computer to his

[Rails] Rails on iPad

2011-12-19 Thread Rodrigo Ruiz
Hi, I'd like to know if there is any way to develop an entire rails app in iPad. Maybe with an app, maybe with an online platform as Cloud9. I'd like to know what you think. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Rails on iPad

2011-12-19 Thread Colin Law
On 19 December 2011 12:20, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Hi, I'd like to know if there is any way to develop an entire rails app in iPad. Maybe with an app, maybe with an online platform as Cloud9. Can you define what you mean by *develop* it in an iPad? Do you mean writing and

Re: [Rails] Rails on iPad

2011-12-19 Thread Rodrigo Ruiz
Yes. I mean do everything you would normally do in a laptop (or computer), but on iPad. On Mon, Dec 19, 2011 at 10:25 AM, Colin Law clan...@googlemail.com wrote: On 19 December 2011 12:20, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Hi, I'd like to know if there is any way to develop an

Re: [Rails] Rails on iPad

2011-12-19 Thread Christoph Schiessl
There are SSH clients available for the iPad. You could install your development environment on a remote server und work on that server via SSH. Edit your code with emacs (or vim, nano, whatever) and run your tests on the remote server. Use iPad's Safari to test your JavaScript and CSS :)

Re: [Rails] Rails on iPad

2011-12-19 Thread Rodrigo Ruiz
I meant only with iPad, and without any other computer On Mon, Dec 19, 2011 at 10:32 AM, Christoph Schiessl c...@proactive.ccwrote: There are SSH clients available for the iPad. You could install your development environment on a remote server und work on that server via SSH. Edit your code

Re: [Rails] Rails on iPad

2011-12-19 Thread Peter De Berdt
On 19 Dec 2011, at 13:45, Rodrigo Ruiz wrote: I meant only with iPad, and without any other computer On Mon, Dec 19, 2011 at 10:32 AM, Christoph Schiessl c...@proactive.cc wrote: There are SSH clients available for the iPad. You could install your development environment on a remote

Re: [Rails] Rails on iPad

2011-12-19 Thread Rodrigo Ruiz
What about platforms like Cloud9? On Mon, Dec 19, 2011 at 11:09 AM, Peter De Berdt peter.de.be...@pandora.bewrote: On 19 Dec 2011, at 13:45, Rodrigo Ruiz wrote: I meant only with iPad, and without any other computer On Mon, Dec 19, 2011 at 10:32 AM, Christoph Schiessl c...@proactive.cc

Re: [Rails] Rails on iPad

2011-12-19 Thread Peter De Berdt
On 19 Dec 2011, at 14:12, Rodrigo Ruiz wrote: What about platforms like Cloud9? On Mon, Dec 19, 2011 at 11:09 AM, Peter De Berdt peter.de.be...@pandora.be wrote: On 19 Dec 2011, at 13:45, Rodrigo Ruiz wrote: I meant only with iPad, and without any other computer On Mon, Dec 19, 2011 at

[Rails] Can anyone tell me, how to test production environment on our local system

2011-12-19 Thread Rameshwar Vyevhare
Actually last few days we are facing some challenges to test production environment on local, I tried with vagrant gem but there is issues on ubunut for posgre installation, Is there any other way to do that? With Regards, Rameshwar -- You received this message because you are subscribed to

Re: [Rails] Can anyone tell me, how to test production environment on our local system

2011-12-19 Thread Colin Law
On 19 December 2011 13:31, Rameshwar Vyevhare ramesh...@retailrealm.co.uk wrote: Actually last few days we are facing some challenges to test production environment on local, I tried with vagrant gem  but there is issues on ubunut for posgre installation, Is there any other way to do that? To

Re: [Rails] Heroku upload

2011-12-19 Thread Hassan Schroeder
On Mon, Dec 19, 2011 at 3:22 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I currently have my account configured in mac terminal, but I'm working on a job which the client  will have the heroku account (but no computer configured). How do I upload a rails app I'm working on my computer to

[Rails] [JOBS] Rails developer wanted at Dressipi (London, UK)

2011-12-19 Thread Frederick Cheung
Hi all, We (Dressipi) are looking for a mid to senior level developer to join our development team in london (you'll need whatever bits of paper are required to be able to work in the UK and be able to commute into the office at least 3-4 days/week). If you love solving problems, teasing meaning

Re: [Rails] Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread kernel panic
On Fri, Dec 16, 2011 at 11:40 PM, Vell lovell.mcilw...@gmail.com wrote: Hi all, I am running into a weird issue where my application is giving me a stack level too deep error. I can't seem to find where my code is throwing this error. On the machine I developed this code on, this error does

Re: [Rails] Re: Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread kernel panic
On Sat, Dec 17, 2011 at 10:18 AM, Vell lovell.mcilw...@gmail.com wrote: On Dec 17, 12:23 pm, Colin Law clan...@googlemail.com wrote: On 17 December 2011 17:14, Vell lovell.mcilw...@gmail.com wrote: When I moved the application from one system to the other, I moved the entire

Re: [Rails] Re: Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread kernel panic
On Sun, Dec 18, 2011 at 1:21 PM, Vell lovell.mcilw...@gmail.com wrote: On Dec 18, 3:54 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sun, Dec 18, 2011 at 11:46 AM, Vell lovell.mcilw...@gmail.com wrote: If I do a gem list rubygems-update, I will see version 1.4.2. I do not

[Rails] Re: Rails + Cassandra

2011-12-19 Thread Dandy
$ sudo gem update --systemERROR:  While executing gem ... (RuntimeError)    gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through

Re: [Rails] Heroku upload

2011-12-19 Thread Rodrigo Ruiz
Actually I want to upload it without messing with my computer configuration. I'd like to upload it online, no terminal. On Mon, Dec 19, 2011 at 12:34 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, Dec 19, 2011 at 3:22 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I

Re: [Rails] Re: Rails + Cassandra

2011-12-19 Thread Walter Lee Davis
On Dec 19, 2011, at 11:38 AM, Dandy wrote: $ sudo gem update --systemERROR: While executing gem ... (RuntimeError)gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The

[Rails] Instrumenting ActiveRecord associations

2011-12-19 Thread Perry Smith
I may have fallen into Knuth's fundamental warning and optimized prematurely. My database has various foreign keys which are there to try and speed things up but they take time to maintain as well. Now I'm wondering if they are worth the time to maintain verses the time they save. Does anyone

Re: [Rails] fixtures and validation

2011-12-19 Thread Chris Downey
Hi Colin, Thanks for the response. Good point about legacy data. In fact, I'm working on a legacy system that I'd like to start integrating Rails into. Would you happen to know of resources that focus on that? Why do I care that fixtures bypass validations? I've been using Agile Web

[Rails] Re: Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread Vell
On Dec 19, 11:20 am, kernel panic knl.pa...@gmail.com wrote: On Fri, Dec 16, 2011 at 11:40 PM, Vell lovell.mcilw...@gmail.com wrote: Hi all, I am running into a weird issue where my application is giving me a stack level too deep error. I can't seem to find where my code is throwing

[Rails] Re: Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread Vell
On Dec 19, 11:22 am, kernel panic knl.pa...@gmail.com wrote: On Sat, Dec 17, 2011 at 10:18 AM, Vell lovell.mcilw...@gmail.com wrote: On Dec 17, 12:23 pm, Colin Law clan...@googlemail.com wrote: On 17 December 2011 17:14, Vell lovell.mcilw...@gmail.com wrote: When I moved the

[Rails] Re: Stack Level Too Deep Error (can't seem to figure it out)

2011-12-19 Thread Vell
On Dec 19, 11:26 am, kernel panic knl.pa...@gmail.com wrote: On Sun, Dec 18, 2011 at 1:21 PM, Vell lovell.mcilw...@gmail.com wrote: On Dec 18, 3:54 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sun, Dec 18, 2011 at 11:46 AM, Vell lovell.mcilw...@gmail.com wrote: If I

Re: [Rails] Instrumenting ActiveRecord associations

2011-12-19 Thread Frederick Cheung
On 19 Dec 2011, at 17:00, Perry Smith li...@ruby-forum.com wrote: I may have fallen into Knuth's fundamental warning and optimized prematurely. My database has various foreign keys which are there to try and speed things up but they take time to maintain as well. Now I'm wondering if they

Re: [Rails] Heroku upload

2011-12-19 Thread Hassan Schroeder
On Mon, Dec 19, 2011 at 8:52 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Actually I want to upload it without messing with my computer configuration. I'd like to upload it online, no terminal. Neither of those sentences make any sense to me. Maybe you can explain more fully what you're

Re: [Rails] Heroku upload

2011-12-19 Thread Rodrigo Ruiz
I'd like to deploy a rails app to a heroku account without using terminal. I'd like to upload it just like I upload a photo to facebook, so I don't have to change my configuration if I need to upload to another account (like I do) On Mon, Dec 19, 2011 at 5:13 PM, Hassan Schroeder

Re: [Rails] Heroku upload

2011-12-19 Thread Hassan Schroeder
On Mon, Dec 19, 2011 at 11:19 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I'd like to deploy a rails app to a heroku account without using terminal. Sorry, don't have any idea how to do that. I'd like to upload it just like I upload a photo to facebook, so I don't have to change my

Re: [Rails] Heroku upload

2011-12-19 Thread Greg Akins
On Mon, Dec 19, 2011 at 2:19 PM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I'd like to deploy a rails app to a heroku account without using terminal. I'd like to upload it just like I upload a photo to facebook, so I don't have to change my configuration if I need to upload to another account

Re: [Rails] Heroku upload

2011-12-19 Thread Rodrigo Ruiz
Yes, each app has its own .git, but I want one of those apps to be on another heroku ACCOUNT, that isn't mine. On Mon, Dec 19, 2011 at 5:27 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, Dec 19, 2011 at 11:19 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I'd like to deploy

[Rails] Jquery Modal Dialog with Jquery DatePicker field strange behavior

2011-12-19 Thread Angelo Cordova
Hi people. I need your help here, please. I have a rails 3.0.9 app, and I'm using Ajax to save some records to the database. To achieve this, I use a jquery modal form, but one of the fields is a datepicker, and if I click on it to display the calendar it doesn't work. The thing is, I press

[Rails] adding methods to objects that were created on the fly

2011-12-19 Thread John Merlino
Hey all, I call this method to create two objects with certain attributes but because of this, these objects do not have the attributes of any of the report object instantiated normally: def self.sum_distance_by_date find_by_sql(SELECT date_trunc('day', time), SUM(distance) FROM reports

Re: [Rails] Re: Rails + Cassandra

2011-12-19 Thread kernel panic
On Mon, Dec 19, 2011 at 8:54 AM, Walter Lee Davis wa...@wdstudio.comwrote: On Dec 19, 2011, at 11:38 AM, Dandy wrote: $ sudo gem update --systemERROR: While executing gem ... (RuntimeError)gem update --system is disabled on Debian, because it will overwrite the content of the

Re: [Rails] Jquery Modal Dialog with Jquery DatePicker field strange behavior

2011-12-19 Thread Craig White
On Dec 19, 2011, at 1:14 PM, Angelo Cordova wrote: Hi people. I need your help here, please. I have a rails 3.0.9 app, and I'm using Ajax to save some records to the database. To achieve this, I use a jquery modal form, but one of the fields is a datepicker, and if I click on it to

Re: [Rails] Heroku upload

2011-12-19 Thread Jim Ruther Nill
On Tue, Dec 20, 2011 at 3:49 AM, Rodrigo Ruiz rodrigo.ru...@gmail.comwrote: Yes, each app has its own .git, but I want one of those apps to be on another heroku ACCOUNT, that isn't mine. i'm not entirely sure what you want to do. If you want to transfer ownership of a repository to another

Re: [Rails] Heroku upload

2011-12-19 Thread Hassan Schroeder
On Mon, Dec 19, 2011 at 11:49 AM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Yes, each app has its own .git, but I want one of those apps to be on another heroku ACCOUNT, that isn't mine. So have the project owner add you as a collaborator. Problem solved. -- Hassan Schroeder

Re: [Rails] Can anyone tell me, how to test production environment on our local system

2011-12-19 Thread Rameshwar Vyevhare
Thanks colin, I got it. On 19/12/11 7:06 PM, Colin Law clan...@googlemail.com wrote: On 19 December 2011 13:31, Rameshwar Vyevhare ramesh...@retailrealm.co.uk wrote: Actually last few days we are facing some challenges to test production environment on local, I tried with vagrant gem but

[Rails] rails initialization process description.

2011-12-19 Thread Dani Dani
Hi, Is there any document out there describing, not in depth, the initialization process of a rails application, how things are working, e.g. when objects are instantiated (objects, variables and methodes scope,...) ? thanks in advance Dani -- Posted via http://www.ruby-forum.com/. -- You

[Rails] rails 2 .3.11 server error

2011-12-19 Thread amvis
*ruby script/server...* * * * have any gem problem...?* /home/vishnu/.rvm/gems/ruby-1.8.7-p352@rails2.3.11/gems/rails-2.3.11/lib/rails/rack/log_tailer.rb:10:in `size': No such file or directory - /home/vishnu/ror2/getafix/log/development.log (Errno::ENOENT) from

[Rails] Re: rails 2 .3.11 server error

2011-12-19 Thread amvis
Now when i chk the log folder... that folder doesn't contain a development.log file..I think that is the problem of error..? how to rectify that problem...? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this

[Rails] Any way to use a radio button attached to record id during a create

2011-12-19 Thread Bob Smith
I'm doing a list of family members, each with a radio button for head of household. After the household record and the records for each person are created, it is easy to set the hoh field to the person wanted. The problem comes if I try to set this field before the create. Then the field is 0, and