similar to: Upgrading old rails application for new rails version

Displaying 20 results from an estimated 9000 matches similar to: "Upgrading old rails application for new rails version"

2006 May 29
1
Init lifecycle and rails
In a servlet J2EE application, there is an init style method that gets called after that servlet is loaded. Is there something similar within a rails controller context. I am looking for something where I can load and setup a particular object. Also, what about with sessions as well. I would like to call some library when a user session begins and possibly kill that object when the
2006 Apr 27
0
Another simple rails application - really only a hour or two
This is another simple rails application. I am just putting them out there; doesn''t really add to any of the other depot applications out there, just another. From type ''rails XXXX'' it probably was a hour or so to setup and design the layout and what-not. http://www.newspiritcompany.com:8086/helper_numbers_idea/
2006 May 04
1
Ways to share code among the ''layout''
Is there a way to use the same code accross multiple layouts. Normally, I am associating a layout with a particular controller? Is there a cleaner way. -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com http://www.newspiritcompany.com/newforums also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
2006 May 29
0
Custom command line libraries for controllers and rails
I have a library that is basically used on the command-line. I am trying to fit it in for my rails application. So far it works, but I was worried about how rails does caching or anything else. Basically, is this an ok approach. So far, I put the library in RAILS_APP/lib/bot.rb And ''bot.rb'' contains a class ''VM''. I have a controller: BotController..
2006 Apr 18
0
activerecord(mysql) and hash to unique count
I am working with ruby(activerecord) and want to save a ''hash'' of URLs such that a key is the URL and the value points to a count of how many times it occurs after processing a csv file my question; all I know of is right now is to attempt to save, get a unique error and then when handling the exception increment the hash value (really a column in a table) Is this bad? Or
2006 Apr 30
2
Give me NIL or null results
with this post; with a query with multiple tables, I am trying to return results that are null in one table; I am trying to do something like this; class NumbersFeedLink < ActiveRecord::Base has_many :numbers_sent_feed_link end class NumbersSentFeedLink < ActiveRecord::Base belongs_to :numbers_feed_link end sent = NumbersFeedLink.find(:all, :order => [
2006 Mar 30
0
Shameless Plug, early rails application
Well, I wanted to mention my early rails application(in the event I stop working on it). At present it is a link blog, you post a link and now we have a listing of links from different users. Ideally, it has been a week or two. On rails in general, it is really nice, you want to add an action or update a model, you just do it as opposed to wrapping something in 10 layers of XML. The
2006 May 03
7
Business Logic and where to place with rails
I am having an issue of deciding where I should put the business code for example the more complex code coming off the controller. Right now, I am just thinking to put it in the ''lib'' directory and the do something along these lines: require_dependency "system_process" class SystemMessageController < ApplicationController include SystemProcess ... ... Where
2006 May 03
6
ActiveRecord and Lost Connection
This isnt totally a rails question; I am using ActiveRecord for storing some simple values into a database. My problem; I keep gettign MySQL Errors. On the Win32 machine it was off and on. Now on the linux machine (ubuntu) I can'' t connect at all. I have all the password settings correct. My only thought, I am working with Threads and thought that might cause the issue, but I
2006 Mar 30
4
Simple Ruby/Rails question, doing posted hours ago
I am not the Ruby aficionado yet, if I have created_on ...timestamp. What is a ruby way of getting the hours/minutes/seconds ago. is there some class that has this implemented. For example: Posted on 3/28/2006 Show a time with: posted: 1 day ago ... something along those lines. -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse:
2006 Mar 30
1
Rails mangle my ''class''?
Did rails due this to the final output of my document. I had a div that had a style: <div style="color: #FFF; background-color: #537677l; "> fsfs </div> This was the final output? <div style="color: rgb(255, 255, 255);"> fsfs </div> -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse:
2006 Apr 08
2
Samba and Logging Off Windows XP
Whenever I log-off of windows xp. I dont lose my mapped drive connection but I get an error message stating an invalid password. I enter the exact same password for the reconnect but it wont stay. It is not a problem just strange that I have to enter my password everytime even though I set it through the mapped drive settings. Anyone seen this before? -- Berlin Brown (ramaza3 on freenode)
2006 Apr 17
1
Error with installing rails/gems on ubuntu-dapper
I am getting an error when trying to install rails on dapper. It looks like it partially installed something. Mainly the issue seems to be with ''gems''? I am using: ruby-1.8.4 gems 0.8.11 Is this bad? bbrown@england:~/rubygems-0.8.11$ sudo gem install rails --include-dependencies Attempting local installation of ''rails'' Local gem file not found: rails*.gem
2006 Mar 27
5
RedCloth and Rails
Has anyone had any experience with RedCloth for rails. It is a textile system. I haven''t spot checked the code and was wondering if it caused any lockups or other issues. http://whytheluckystiff.net/ruby/redcloth/ -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
2006 Mar 25
3
Rails and Lighttpd, hangs?
I know this is kind of a generic question. But, when hitting my lighttpd/rails site on some of the first hits, the site hangs. I think it has something with the lighttpd configuration, possibly something I am missing with rails or ruby? Any ideas or how to track this down. fastcgi.server = ( ".fcgi" => ( "0.0.0.0" => ( "socket" =>
2006 Mar 27
4
How to create a daemon in a rails app
i want a daemon will check somthing every 10 minute how do this in rails? -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
2
dispatch.fcgi hanging after lighttpd shutdown
Hi. I''m using RoR 1.0 with FastCGI and lighttpd on a Debian 3.1 box. I have configured lighttpd to do adaptive spawning of the FastCGI processes. However, after shutting down lighttpd the FastCGI processes remain running. Did this problem occur to anyone of you? Is there a fix? I''d be really grateful for every answer. Regards, Manuel Holtgrewe
2006 Apr 22
3
How to use Rails and REST
Hi, I just wrote an article on how to easily create a REST API for Ruby on Rails applications: http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html It describes how to create everything from the ground up and includes information on testing your API too. -- Thanks, Dan Kubb
2011 May 10
7
Webrick script/server file does not exist
Hello all, I worked fairly enough with PHP and MySQL, but am very new to Ruby. I have Windows machine with Apache and MySQL installed previously. Both Apache and MySql were stopped while installing Ruby. I tried several ways to install Ruby 1.8.7 and one-step installer. I can use Ruby with netbeans 6.0.1 with its own Ruby or with the one I installed now. The problem starts when I try to create
2011 Apr 16
17
Rails 3 Crashing On Windows 7
Hi guys, I have Rails 3 running on Windows 7 with Ruby 1.9.2 Every now and again, my server crashes, and I see the following information in the windows event log: Faulting application name: ruby.exe, version: 1.9.2.180, time stamp: 0x4d5ee5ed Faulting module name: msvcrt-ruby191.dll, version: 1.9.2.180, time stamp: 0x4d5ee5ec Exception code: 0xc0000005 Fault offset: 0x0011a00e Faulting process