Re: [Rails] upgrading problems, 2.3.5 -> 2.3.8

2010-05-29 Thread Hassan Schroeder
On Sat, May 29, 2010 at 6:18 PM, Omar Moreno wrote: > Ever since I updated rails to 2.3.8, script/server exits right after it > starts. > [2010-05-29 18:14:58] WARN  TCPServer Error: Address already in use - > bind(2) > Exiting > /usr/local/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Addr

[Rails] Re: UTF8 name not carried into the page cache filename

2010-05-29 Thread dave4...@greatchiro.com
I have concluded that the problem is not Rails or Rails3. I have come to believe it is a Ruby problem. I have sent the comments below to a ruby forum. -- Windows XP can create a Résumé.html file but ruby cannot. Why? The following code created the wrong filename

[Rails] upgrading problems, 2.3.5 -> 2.3.8

2010-05-29 Thread Omar Moreno
Ever since I updated rails to 2.3.8, script/server exits right after it starts. Here's the output => Ctrl-C to shutdown server [2010-05-29 18:14:58] INFO WEBrick 1.3.1 [2010-05-29 18:14:58] INFO ruby 1.9.1 (2009-01-30) [i686-linux] [2010-05-29 18:14:58] WARN TCPServer Error: Address already in

[Rails] Tar archive extract to buffer and offer for view / download

2010-05-29 Thread Togg
I want to open a tar.gz archive and display the content as a folder structure and offer possibility to download and view the content. The archive should not be compressed to a folder but only to a buffer. Helper: require 'tarruby' def testFu File.directory?(log_folder) or return "Log folde

[Rails] Re: Can only traverse a polymorphic association in one direction

2010-05-29 Thread Matt Jones
On May 27, 7:18 am, BarryOg wrote: > Hi all, I'm working on a polymorphic association and I've run into a bit of a > stumbling block.  I only seem to be able to traverse the relationship in one > direction and not the other.  This is what my code looks like: > > class NodeEntry < ActiveRecord::B

[Rails] numbers of the days

2010-05-29 Thread Aldo Italo
Hi John. I like this library, it was just what I wanted. I am a newbie, i did not understand how to put dynamically the numbers of the days in the method IceCube::Rule.weekly i have try this under Ruby on Rails: ## all_days = [] all_days << 1 if params[:recurrent][:mon] al

[Rails] Re: passenger on localhost

2010-05-29 Thread Steve Ross
Ahmet Kilic wrote: alexey wrote: "We're sorry, but something went wrong. We've been notified about this issue." It is a rails error, and maybe you are in production mode, My apache conf: NameVirtualHost site.com:80 ServerName www.site.com RailsEnv development RailsAllowModRewrite

[Rails] Re: Unable to gem install rails

2010-05-29 Thread Rc Bl
Hassan Schroeder wrote: > On Sat, May 29, 2010 at 12:02 PM, Rc Bl wrote: >> I am unable to install rails via the CLI, Fedora 13. This is a new >> installation and I am not certain why I am receiving this error. >> >> ERROR: �Loading command: install (LoadError) >> � �no such file to load -- zlib >

Re: [Rails] Unable to gem install rails

2010-05-29 Thread Hassan Schroeder
On Sat, May 29, 2010 at 12:02 PM, Rc Bl wrote: > I am unable to install rails via the CLI, Fedora 13. This is a new > installation and I am not certain why I am receiving this error. > > ERROR:  Loading command: install (LoadError) >    no such file to load -- zlib You would get a pretty good ide

[Rails] Unable to gem install rails

2010-05-29 Thread Rc Bl
I am unable to install rails via the CLI, Fedora 13. This is a new installation and I am not certain why I am receiving this error. ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::In

[Rails] Re: problem with the getting started tutorial

2010-05-29 Thread Roelof Wobben
Oke, Im now doing everything with nano and the prompt. But I hit one problem. on Chapter 6.2 I have to go to this url: /app/views/home/index.html.erb But views only has layouts and posts in it. Roelof -- Posted via http://www.ruby-forum.com/. -- You received this message because you are su

[Rails] Active record interface query

2010-05-29 Thread girlcarina
Olá, tudo bem... sou nova em ROR e estou precisando de ajuda com o active query... Bom.. tenho 3 models.. Staff, Appointment e Service.. Gostaria de saber quanto que esse staff gerou de serviço.. Obs.. O Staff possui 2 models filhos (Employees e Freelancer) GOstaria de saber com faço isso.. fiz um

[Rails] Re: Authlogic & Perishable token

2010-05-29 Thread Stanislav Orlenko
I've found: class User < ActiveRecord::Base acts_as_authentic do |c| c.transition_from_restful_authentication = true end end topic is closed -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

Re: [Rails] Pleas Help Me regarding rake db:migrate

2010-05-29 Thread Haribhau Ingale
Hi, Can you just check once again that you don't have two migration files creating books table? If not then you can choose books tables manually. Thanks, --Haribhau On Sat, May 29, 2010 at 3:24 AM, DVM wrote: > I am beginner for this Rails from the past 2 days I am working hard > to fix t

[Rails] User Error during memcached integration

2010-05-29 Thread Rodney
Hello, I hope all is well. I am hoping someone can help me with a problem that I am certain is user error? The configuration details below work in all my other environments including integration, development and qa. However, the production servers give the following error: unable to find server du

Re: [Rails] Pleas Help Me regarding rake db:migrate

2010-05-29 Thread Haribhau Ingale
I mean delete books table manually from Database if you don't have two migration files creating books table. On Sat, May 29, 2010 at 3:49 PM, Haribhau Ingale wrote: > Hi, > > Can you just check once again that you don't have two migration files > creating books table? If not then you can choose

Re: [Rails] Change the column name field in error message

2010-05-29 Thread Haribhau Ingale
Hi Greg, Rails by default use DB column name while displaying errors on UI. You can choose one of the following options to write custom validation errors 1. User plugin http://rubyforge.org/projects/custom-err-msg/ 2. Check validation errors in validate method and use add_to_base for

[Rails] Using desert_routes from a plugin in my own app?, no routes to match

2010-05-29 Thread rubybox
I have migrated a vendor/plugins/community_engine plugin from the vendor directory to my own directory since I require that many changes that its no longer a good idea to keep the vendor folder for it. Everything works after some hiates only the stock desert_routes.rb ( http://pastie.org/983312 )

[Rails] Re: passenger on localhost

2010-05-29 Thread Ahmet Kilic
alexey wrote: > "We're sorry, but something went wrong. We've been notified about this > issue." > It is a rails error, and maybe you are in production mode, > My apache conf: > NameVirtualHost site.com:80 > > ServerName www.site.com > RailsEnv development > RailsAllowModRewrite off >

[Rails] Re: Rails unrecoverable error

2010-05-29 Thread rubybox
After long time I found out init.rb was a plugin specific file and moved it to /config/initializers I had to remove this part of the code to make it working: #reload CE in development config.after_initialize do if RAILS_ENV == 'development' ActiveSupport::Dependencies.load_once_paths = Act

[Rails] Re: form helpers don't seem to work with RJS files...

2010-05-29 Thread Steve Russo
I actually tried to add form_for in the partial and it appeared to work. The form within a form wasn't a problem it seemed. However when a validation error was detected, the dynamically rendered partial was gone. When I tried to reselect the partial in the select box, the content I added was wi

[Rails] Re: B. S. essential

2010-05-29 Thread scuptor of clouds
Marnen, Sorry that we could not provide more info.crazy thing called liability. The Bjarne Stroustrup initials were meant only to illustrate that B. S. does not always stand for Bachelor of Science. Again, throwing out the SRS was not meant literally.a given set of functions can be design

[Rails] Re: Error with Gem Outdated command

2010-05-29 Thread John T.
John T. wrote: > Trying to run 'gem outdated' on OS X (10.6.3) and I'm getting: > More info: gem outdated -V GET http://rubygems.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz 200 OK ERROR: While executing gem ... (NoMethodError) undefined metho

[Rails] Error with Gem Outdated command

2010-05-29 Thread John T.
Trying to run 'gem outdated' on OS X (10.6.3) and I'm getting: sudo gem outdated ERROR: While executing gem ... (NoMethodError) undefined method `first' for nil:NilClass Here's my info: john$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.7 (2009-06-08 patc

[Rails] Re: Display only by date selected

2010-05-29 Thread Matt Royer
Ar Chron wrote: > Seems like pretty elementary logic... > For populating the droplist on the form, you just need a set of items > with a defined coding scheme (0 = today, 1 = 1 week, 2 = 2 weeks, 3 = 1 > month, 4 = 1 year, 5 = all, or some such). > > In the controller interpreting the link_to_re

[Rails] Authlogic & Perishable token

2010-05-29 Thread Stanislav Orlenko
Hi I'm setting up authlogic and have an error: Column 'perishable_token' cannot be null . . Does anyone know what should generate value for this column? Thanks in advance! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Re: B. S. essential

2010-05-29 Thread Marnen Laibow-Koser
scuptor of clouds wrote: > B. S. essential. Good, because it appears that this posting contains a lot of it. :D I understand that you wanted to do an out-of-the-box job posting, but this doesn't seem to give much info about what you're really looking for... > If that rang up as �bubble sort�

[Rails] Re: Pleas Help Me regarding rake db:migrate

2010-05-29 Thread Marnen Laibow-Koser
Krishna Venkata wrote: > I am beginner for this Rails from the past 2 days I am working hard > to fix the following error > > C:\Murali Rubby\demo\library>rake db:migrate > (in C:/Murali Rubby/demo/library) > == CreateBooks: migrating > > -- c

[Rails] Re: Advise wanted on Ror software development and project m

2010-05-29 Thread Marnen Laibow-Koser
rubybox wrote: > As a 1 man ruby on rails developer I have several ideas / concepts for > (near) future project and 1 active project im working on now. I found > myself in the need of a nice good looking and simple project > management to keep track of software development and features, goals > and

[Rails] Rails unrecoverable error

2010-05-29 Thread rubybox
Im working on an app but have been plagued by an unrecoverable error module ApplicationConfiguration require 'ostruct' require 'yaml' if File.exists?( File.join(Rails.root, 'config', 'application.yml') ) file = File.join(Rails.root, 'config', 'application.yml') users_app_config = Y

[Rails] Change the column name field in error message

2010-05-29 Thread Greg Ma
Hi, When an error is display, it first show the column concerned. Does someone knows how to change the display column name? Greg -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this g

[Rails] Pleas Help Me regarding rake db:migrate

2010-05-29 Thread DVM
I am beginner for this Rails from the past 2 days I am working hard to fix the following error C:\Murali Rubby\demo\library>rake db:migrate (in C:/Murali Rubby/demo/library) == CreateBooks: migrating -- create_table(:books) rake aborted! An er

[Rails] habtm + accepts_nested_attributes_for

2010-05-29 Thread Brewster
so i have read conflicting information about this, some seem to pull it off, some say its impossible, but here is what i am trying to accomplish. i am using authlogic w/ lockdown, and when i create a new user, i want to add an entry into the user_groups_users join table with the new user id, and a

[Rails] B. S. essential

2010-05-29 Thread scuptor of clouds
B. S. essential. If that rang up as ‘bubble sort’ or better still Bjarne Stroustrup, then read on. We are looking for a funny, intuitive, out-of-the box thinker and risk- taker…Ruby expertise would be good too. Most importantly, you can read our functional requirements, understand how these need

Re: [Rails] Beginner Facing Problem with rake db:migrate

2010-05-29 Thread venkatamurali doolla
Hi Philip, Earlier I manual dropped all the tables that didn't fix the problem Now used rake db:drop db:create db:migrate but still geting rake aborted message.. C:\Murali Rubby\demo\library>rake db:drop db:create db:migrate (in C:/Murali Rubby/demo/library) rake aborted! Mysql::Error: Specifi

[Rails] Re: Advise wanted on Ror software development and project management + my own github server?

2010-05-29 Thread Frederick Cheung
On May 29, 8:31 am, rubybox wrote: > > # Some soft of github server to store my code locally on my dev > machine ( I dont want my code up on github ) Well git itself can serve remote clients. If you want a web interface gitorious is opensource. I'd strongly reccomend that you don't just host th

[Rails] Advise wanted on Ror software development and project management + my own github server?

2010-05-29 Thread rubybox
As a 1 man ruby on rails developer I have several ideas / concepts for (near) future project and 1 active project im working on now. I found myself in the need of a nice good looking and simple project management to keep track of software development and features, goals and milestones and version

Re: [Rails] stopping accidental form submissions

2010-05-29 Thread Colin Law
On 28 May 2010 20:45, soheil danesh wrote: > Hi, > > I'm using rails 3 and have an ajax form where users can add data, > click submit, and it will be appended to a feed. The problem is if the > users click submit (or press enter) multiple times, the form seems to > be submitted multiple times as w