Re: [Rails] Formatting date field in form

2014-12-10 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: I am new to RoR and trying to update an existing app developed by someone else. I have the following form in a partial file to display for the new and edit actions. I added :value to the program_date field to display only the date of the timestamp field, removing

[Rails] Formatting date field in form

2014-12-09 Thread Robert Fitzpatrick
I am new to RoR and trying to update an existing app developed by someone else. I have the following form in a partial file to display for the new and edit actions. I added :value to the program_date field to display only the date of the timestamp field, removing the time portion of the field

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Jason Fleetwood-Boldt wrote: Without seeing the task I can't tell you the answer to that. And the fact that it runs on a cron schedule means that you probably have something like a worker in the background doing that. Normally you run rake some_task X=abc Y=xyz I see this piece of code at

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrickrob...@webtent.org wrote: Then the code uses '#puts something if @verbose' throughout. Like I said, I'm new to ruby, but have used Perl and PHP and other languages before, I hope is what is throwing me off is the # are not

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrickrob...@webtent.org wrote: OK, that's a relief that I can read the code, thanks for clarifying. To get verbosity, I'll need to do a lot of uncommenting and do line-by-line debuggging :-/ Jason mentioned a debugging tool for

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: Maybe I missed something earlier in the discussion, but can't you just edit it to: @verbose = true if arg == 'V' Yes, I guess so, and then uncomment all the places in the code where he has #puts something if @verbose I'll give it a try, still trying to figure

[Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
I am new to ruby and maintaining an existing web application. I need to change the FTP server in a task and trying to familiarize myself with rake tasks. The task is in lib/tasks/archives.rake under the namespace utils. I read over a rake tutorial and viewed rake options to try and show

Re: [Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
Jason Fleetwood-Boldt wrote: Finally, you probably almost certainly don't want to be running RAILS_ENV=production if you are developing locally on your own machine. And learn to use a debugger-- I recommend byebug if you're using Ruby 2.0 or above, and put byebug at the top of your rake task.

Re: [Rails] Re: copy app to another server

2014-11-04 Thread Robert Fitzpatrick
Frederick Cheung wrote: Having run bundle as root may well have left some directories owned by root. Where bundler tries to write files to depends on how its configured - (the .bundle/config file, if it exists may have some of these settings). In a production environment passing --deployment

[Rails] copy app to another server

2014-11-03 Thread Robert Fitzpatrick
I've only dealt with PHP or ASP in the past, brand new to Ruby on Rails and trying help with an existing app. I've copied a production app to another server for development and troubleshooting, which is running Apache 2.2 on Ubuntu 12.04 LTS. I installed ruby and passenger module as the root

Re: [Rails] Re: copy app to another server

2014-11-03 Thread Robert Fitzpatrick
Frederick Cheung wrote: You should never run bundle as root (or using sudo). When deploying, all the gems get installed to yourapp/vendor so there should not be any need for elevated permissions. I don't recall off the top of my head whether rvm installs bundler by default - it doesn't then you

Re: [Rails] rails version and copying app

2014-10-30 Thread Robert Fitzpatrick
Colin Law wrote: That tells you it is rails 4.0.0 as activemodel is one of the components. However, rather than seeing what versions are installed (there could be more than one version of the gems installed) look in the file Gemfile.lock in the applications root folder and you will see what

[Rails] rails version and copying app

2014-10-29 Thread Robert Fitzpatrick
I volunteer for a non-profit with a Ruby on Rails app and they recently lost their web developer. I have done a lot of programming from Perl to PHP and ASP, but never RoR. I've become somewhat familiar and been able to track down and make some cosmetic changes to some of the apps web pages,