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 the
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 v
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 if @verbose
I'll give it a try, still tryi
Scott Ribe wrote:
On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick 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 Rails 2
Scott Ribe wrote:
On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick 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 commen
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
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.
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 informa
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 sho
Frederick Cheung wrote:
You should never run bundle as root (or using sudo). When deploying, all
the gems get installed to /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 do need
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 us
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 vers
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,
but
13 matches
Mail list logo