similar to: Steps to Productionize your code?

Displaying 20 results from an estimated 90000 matches similar to: "Steps to Productionize your code?"

2008 Feb 03
4
Testing helper/view methods from script/console
Hi, Is it possible to test helper/view methods from script/console. I want to test the output of methods like distance_of_time_in_words. But it won''t let me from the console. What am I missing? TIA Luke -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2007 Apr 12
4
Installing rspec in Windows
Hi all, I''m trying to install rspec and I''m having a problem. C:\Users\Nathan\Documents\rails\myproject> gem install rspec Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rspec-0.8.2 Installing ri documentation for rspec-0.8.2... Installing RDoc documentation for rspec-0.8.2... C:\Users\Nathan\Documents\rails\myproject> ruby
2007 Dec 13
0
ANNOUNCE: New development/release practices
As mentioned, I''m making some changes to how I manage development around releases, since 0.23.2 still had too many bugs but it took me four months to get a release out. This is obviously unacceptable, regardless of how good my excuses are. :) The major change is that I''m always going to maintain a stable branch, named after the current stable minor release. For
2019 Dec 03
1
switch to reference counting in R-devel
This is very exciting news. Luke, thank you for all your work on this - I know it's been a long journey. All the best, Henrik On Tue, Dec 3, 2019 at 8:04 AM Tierney, Luke <luke-tierney at uiowa.edu> wrote: > > R-devel has been switched to use reference counting by default with > r77508. Building with -DSWITCH_TO_NAMED goes back to the NAMED > mechanism. > > Best,
2019 Dec 03
0
switch to reference counting in R-devel
R-devel has been switched to use reference counting by default with r77508. Building with -DSWITCH_TO_NAMED goes back to the NAMED mechanism. Best, luke On Sun, 24 Nov 2019, luke-tierney at uiowa.edu wrote: > Baring any unforeseen issues R-devel will switch in about a week from > the NAMED mechanism to reference counting for determining when objects > can be safely mutated in base C
2019 Nov 24
3
switch to reference counting in R-devel
Baring any unforeseen issues R-devel will switch in about a week from the NAMED mechanism to reference counting for determining when objects can be safely mutated in base C code. This is expected to have minimal impact on packages not using unsupported coding practices in their C code. The transition to reference counting has been in progress for a number of years. Some older notes on this are
2007 Mar 15
7
SEC to minutes
Hi Friends, I am new to ruby on rails. I want to convert seconds to minutes. like if 220sec= 3.40 minutes I did in this way sec/60 but it giving the false results ex : 70 sec = 110/6=1.8 but it is worong as for time Can u give any advice? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed
2020 May 21
0
[External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"
I looks like you may have misunderstood my post so just to make sure: There will be no patch to R to support this. If this is something you want for yourself, then I have shown you how you can do it. You can put the code in a startup file if you like. If you want your students to have this, then you can prepare a startup file for them that does this. Best, luke On Thu, 21 May 2020, Juan
2016 May 05
0
Storage of byte code-compiled functions in sysdata.rda
I can't reproduce the more complex version. But the package on CRAN fails in the same way on 3.2.3 and 3.3.0. The problem is that your sysdata.rda includes a function that is generating this error. If you do f <- getFromNamespace(".RMXE", ns ="RobAStRDA")[["GEVFamily"]][["fun.N"]][[1]] g <- get("fct", environment(f)) and look at the
2007 Jul 19
8
Where do I put code for my own types?
Sorry for all the questions today... Beyond the obvious things--models, controllers, helpers, and other framework-related types--where should I put the code for my own types? For example, I was thinking of writing my own AJAX-friendly paginator, but I don''t know where to put the code for that sort of thing. I would prefer to keep things object-oriented, so I would rather do a lot of
2006 Nov 08
1
Muliple SQL statements / Return percentage of rows
I''m stumped... I need to return a number of rows with the top & bottom x percentage of rows removed in mysql 4.x e.g. SELECT COUNT(*) value_count, SUM(deals.value) / COUNT(*) average_value FROM deals ORDER BY deals.value Now say that returns the sum of 100 deals, what I actually need to do is return the count & sum of rows 10-90 (i.e. the top & bottom 10% rows removed)
2008 Nov 18
3
Code changes are ignored due to code minor ver. were cached
Hi there! I study Ruby on Rails and met a problem. I placed a class definition code for class which is NOT a Model into separate file, assume MyToolClass.rb Then I started working on controller code and required ''MyToolClass'' While working on controller code I also corrected some code in MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were ignored by Rails until
2007 Mar 13
13
validates_inclusion_of disabling
Hello all. I have a problem using validates_inclusion_of. I need to switch off some validations during a migration period, is there a way? I tried to use if, with a static method of one of my models, but the behaviour is something strange It seems that the static method should be in a string to be evaluated. And the order of the elements in the if is counting... :if => (:some_field
2006 Sep 15
7
is there a multiline ruby "comment" approach? like java's /* code */ ???
Hi, Just wondering if there is a way to easy comment out a block of ruby code without putting the "#" characters on each line? Is there an equivalent to java''s /* */, for example: /* askdf asd fasdf as dfasd fa */ Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Oct 22
1
unsubscribe
I''d like to be removed from the puppet-users email list... but I cant find my name on the webpage. Thanks, Jennifer Ford *********************************** Manager, Unix Administration Teach For America Phone: 212-279-2080 ext. 688 jennifer.ford at teachforamerica.org One day, all children in this nation will have the opportunity to attain an excellent education.
2006 Nov 25
4
Sessions And Active Record
Hi, I''m a newbie even though I''ve play with rails for a few months now. I would like to save several activerecord objects (not in the database) accross several screens. What is the prefered rails way to do this? Should copy all of their data to @session or use the member variables and put them into hidden fields? I am trying to move from "whatever kludge works" to
2008 Nov 05
4
select in form - best practice?
Q. What resource do readers recommend for referencing regarding best practices for form construction in Rails? I have the following situation: location_type of Locations may have one of five (5) possible codes. Presently I have these codes listed in a drop-down select constructed thusly: <p> <b>Location type</b><br /> <%= f.select :location_type,
2008 Jun 01
1
How does 37signals code their "Open Bar" (Open ID) feature?
See here: http://www.37signals.com/openbar Say you have two applications: 1) Basecamp 2) Highrise How would Highrise know that the user (with the same OpenID credentials) exists on another application (Basecamp)? Is there something involved for that to happen? Are they using ActiveResource to fetch the external user table, and then searching for that OpenID? -- Posted via
2006 Nov 28
2
Twice the same code, but only once it seems to work
Hello, I am confronted with a very strange problem which I can not solve... and God I tried a lot, lost almost a whole day, but couldn''t find an answer: The idea is to have a form both in admin and in dir, in admin there will be some more fields that is why I have twice a form. In admin the form appears, in dir the form does not appear instead "þÿ New company" why is it that the
2007 Sep 26
3
Can't connect to local MySQL server
hello everyone, i am new to ROR. i am just trying to run a simple application which will show some data from database, i have done it in my local machine. But when i tried to do the same thing in my "Dreamhost" shared hosting. I got an error. i used the Rake tool and successfully migrated a model (using SSH client tool). The table was successfully created hosting db server, so i