[Rails] Re: Please Help: Accessing Ruby app brings up Apache test page

2010-02-27 Thread rezilient
Any ideas? Thanks for any advice. On Feb 25, 9:09 pm, rezilient rezili...@gmail.com wrote: Hello. I finally got Ruby, Gem and Passenger installed without any glaring errors. ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux] gem 1.3.5 I added the following lines to my httpd.conf:

[Rails] Re: How do you allow users make custom shopping lists?

2010-02-27 Thread Phoenix
I'd start by creating various models to represent the user, the lists, the items *in* the lists, and a pairing relationship between them (aka a join table, or in Rails lingo, a has many through relationship). For example, you could have 4 models: User ShoppingList Food Foodable (the join model)

[Rails] Re: Re: Rails instalation under Windows - problem

2010-02-27 Thread Jan Kunes
Hi Rajeev, thanks. You helped me a lot. Now I have running Instant Rails, but how to force it to work together with some IDE (Aptana, Netbeans)? Error messages like wrong gems, cannot launch mongrel server etc. appear when I'm trying to run sample application inside these tools. -- Posted via

[Rails] Re: date_select with Searchlogic

2010-02-27 Thread goodwill
+1, hit this nail right on today :( On Feb 25, 7:27 pm, Stuart Corbishley li...@ruby-forum.com wrote: I am aware that date selects params are supposed to supported by Searchlogic. But I'm battling to get them working. I am using one of the named_scopes that it makes, and it works perfectly

[Rails] How to generate this URL

2010-02-27 Thread east
I'm stumped trying to generate an URL for a working route. I've this route definition: map.connect 'foo/:foo_id/propose_something/:zap_id', :controller = foo, :action = propose_something When I browse to this url: http://localhost:3000/foo/2/propose_something/5, my

[Rails] Oniguruma and Ultraviolet on Windows 7

2010-02-27 Thread amacgregor
Hi I have been tying to install the followings gems in order to add code syntax highlighting to my application: -Oniguruma -Ultraviolet -Harsh Unfortunately I have been running into the the following errors when running gem install oniguruma ultraviolet Building native extensions. This could

[Rails] Re: Turn of a single validation

2010-02-27 Thread Frederick Cheung
On Feb 26, 6:39 pm, Ralph Shnelvar li...@ruby-forum.com wrote: Colin Law wrote: You are doing a migration not a seed aren't you?). I'm doing  a seed with random data and I want all the validations ... except one. I know.  I know.  I'm bad bad bad.  But this is a hack AND I'd like to

Re: [Rails] Re: Re: Rails instalation under Windows - problem

2010-02-27 Thread kannav rajeev
dO NOT TRY ide FOR rails there is sach a no need trust me ok if stiil error come print that here On 2/27/10, Jan Kunes li...@ruby-forum.com wrote: Hi Rajeev, thanks. You helped me a lot. Now I have running Instant Rails, but how to force it to work together with some IDE (Aptana, Netbeans)?

[Rails] Re: Re: Rails instalation under Windows - problem

2010-02-27 Thread Jan Kunes
Well, you confused me a little bit ;-). Where do you write your apps? In notepad? And how do you test them? Thanks Jan kannav rajeev wrote: TRy instant rails it works do not waste yours time still need to install we are here On Sat, Feb 27, 2010 at 12:44 PM, Jan Kunes

[Rails] Re: Re: cucumber directories not working

2010-02-27 Thread Phillip Koebbe
Chris Habgood wrote: I figured out it was the rerun.txt file in the root directory which had the old directories from the first run. live and learn. DOH. Heh. That file has been the confusion of many newcomers to Cucumber. You are just another a growing list of learners. Peace, Phillip --

Re: [Rails] Re: Re: Rails instalation under Windows - problem

2010-02-27 Thread kannav rajeev
listen Use instant rails Notepad ++ as a editor for a while take a tour of instant rails On 2/27/10, Jan Kunes li...@ruby-forum.com wrote: Well, you confused me a little bit ;-). Where do you write your apps? In notepad? And how do you test them? Thanks Jan kannav rajeev wrote: TRy

Re: [Rails] Re: Re: Turn of a single validation

2010-02-27 Thread Xavier Noria
On Fri, Feb 26, 2010 at 7:39 PM, Ralph Shnelvar li...@ruby-forum.com wrote: Colin Law wrote: You are doing a migration not a seed aren't you?). I'm doing  a seed with random data and I want all the validations ... except one. Another option: If you can trust your seed data save(false) turns

Re: [Rails] Re: Please Help: Accessing Ruby app brings up Apache test page

2010-02-27 Thread Simon Macneall
Shouldn't the virtual host be VirtualHost 69.69.69.169:80 Note the colon? Cheers Simon On Sat, 27 Feb 2010 16:22:20 +0800, rezilient rezili...@gmail.com wrote: Any ideas? Thanks for any advice. On Feb 25, 9:09 pm, rezilient rezili...@gmail.com wrote: Hello. I finally got Ruby, Gem and

Re: [Rails] How to generate this URL

2010-02-27 Thread Craig White
On Fri, 2010-02-26 at 17:44 -0800, east wrote: I'm stumped trying to generate an URL for a working route. I've this route definition: map.connect 'foo/:foo_id/propose_something/:zap_id', :controller = foo, :action = propose_something When I browse to this

[Rails] Re: Oniguruma and Ultraviolet on Windows 7

2010-02-27 Thread Frederick Cheung
On Feb 27, 3:02 am, amacgregor d...@allanmacgregor.com wrote: Hi I have been tying to install the followings gems in order to add code syntax highlighting to my application: Do you have the correct compiler toolchain installed (from the log looks like minggw32) ? It also looks like someone

Re: [Rails] Help! Invalid character in IE

2010-02-27 Thread Charles A. Lopez
interesting... sample code please? can we see the AJAX call? Can you submit from IE with different parameters that will avoid the error message? On 27 February 2010 00:06, John Shen jshen2...@gmail.com wrote: Hi, folks, I have been wrestling with this for a couple of days now. Everything

[Rails] Re: Oniguruma and Ultraviolet on Windows 7

2010-02-27 Thread amacgregor
Hi Frederick, I actually was able to install both ultraviolet and oniguruma with the following commands : gem install oniguruma --platform=mingw32 gem install ultraviolet --platform=mingw32 So know when I run gem list --local I see *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5)

[Rails] Re: Rails instalation under Windows - problem

2010-02-27 Thread amacgregor
Kannav, I disagree there are some very very good editors for Rails, and having rails and ruby directly installed instead of using instant rails is way better option. Jan, You should try rubymine, is a great editor for the installation problem you where having what version of windows are you

[Rails] Re: Plugin not found

2010-02-27 Thread amacgregor
Hi Marc, I'm having the same problem where you able to find a solution ? On Feb 24, 4:30 pm, Marc Luzietti absyn...@gmail.com wrote: I'm using Ruby 1.8.7 and Rails 2.3.5. I'm in aWindowsXP environment. Whenever I run ruby script/plugininstallyada/yada/yada I get: Pluginnot found [yada yada

[Rails] Re: Rails instalation under Windows - problem

2010-02-27 Thread gdonald
On Feb 27, 5:07 am, Jan Kunes li...@ruby-forum.com wrote: Where do you write your apps? In notepad? Emacs, for example here it is on win7: http://static.destiney.com/emacs_screen_shot.jpg -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Re: Rails instalation under Windows - problem

2010-02-27 Thread Damjan Rems
Jan Kunes wrote: Hi Rajeev, thanks. You helped me a lot. Now I have running Instant Rails, but how to force it to work together with some IDE (Aptana, Netbeans)? Error messages like wrong gems, cannot launch mongrel server etc. appear when I'm trying to run sample application inside these

[Rails] Re: Rails instalation under Windows - problem

2010-02-27 Thread amacgregor
Or if you prefer and editor instead an IDE e-text editor is also very good, is textmate for windows basically http://yfrog.com/i3etextj running on windows 7 On Feb 27, 8:07 am, Jan Kunes li...@ruby-forum.com wrote: Well, you confused me a little bit ;-). Where do you write your apps? In

[Rails] %= % Interpolation question

2010-02-27 Thread Dudebot
Is there a way to get a Rails view to interpolate inside %= %? E.g. if foo = '%= bar %' and bar = '2', to have some variant of %= foo % in app/views/whatever/ whatever.html.erb display '2' rather than '%= bar %'? Many TIA, Craig -- You received this message because you are subscribed to the

Re: [Rails] %= % Interpolation question

2010-02-27 Thread Craig White
On Sat, 2010-02-27 at 07:08 -0800, Dudebot wrote: Is there a way to get a Rails view to interpolate inside %= %? E.g. if foo = '%= bar %' and bar = '2', to have some variant of %= foo % in app/views/whatever/ whatever.html.erb display '2' rather than '%= bar %'? lots of ways... choose

[Rails] Postgresql error in connecting to database - invalid response to ssl negotiation

2010-02-27 Thread @shaan
Hello, I have a rails application with PostgreSQL as the database. The application works fine on my development PC. I deployed this application to a server PC (different one), where I am getting the following error - PGError in StudentsController#home received invalid response to SSL

[Rails] Re: Rails instalation under Windows - problem

2010-02-27 Thread Jan Kunes
Hello guys, thanks for all your advices, I really appreciated them. I decided to stay with Notepad++ as an editor for now. I moved forward, but... I created my own application directory (command: rails myapp) and I can see ruby welcome page when I put localhost:3000 in to browser. Now, I

Re: [Rails] Re: Rails instalation under Windows - problem

2010-02-27 Thread Colin Law
On 27 February 2010 15:37, Jan Kunes li...@ruby-forum.com wrote: Hello guys, thanks for all your advices, I really appreciated them. I decided to stay with Notepad++ as an editor for now. I moved forward, but... I created my own application directory (command: rails myapp) and I can see ruby

Re: [Rails] Re: %= % Interpolation question

2010-02-27 Thread Craig White
On Sat, 2010-02-27 at 07:43 -0800, Dudebot wrote: Thanks, Craig--I think my example was too terse. What I'm trying to do is to pass a block of text to a view which may contain multiple references to external models, and I'd like to interpolate those references. So, for example, if

[Rails] rails 3 on debian

2010-02-27 Thread Ken Paul
Rails 3 requires bundler to be installed, but bundler can't be installed on Debian lenny because the gem version 1.2 is too old, an attempt update is also failed, any idea? # gem update --system ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems

[Rails] Re: %= % Interpolation question

2010-02-27 Thread AGoofin
%= bar.to_s % On Feb 27, 11:30 am, Dudebot craign...@gmail.com wrote: OK, here's what I have in app/views/molds/show.html.erb: trtd%= @mold.body.gsub( \n, br / ) %/td/tr The controller finds @patient, and @patient.id = 2 If @mold.body = The patients id is %= @patient.id % Then the view

Re: [Rails] rails 3 on debian

2010-02-27 Thread Hassan Schroeder
On Sat, Feb 27, 2010 at 8:24 AM, Ken Paul li...@ruby-forum.com wrote: Rails 3 requires bundler to be installed, but bundler can't be installed on Debian lenny because the gem version 1.2 is too old, an attempt update is also failed, any idea? Several: 1) don't use Debian 2) don't rely on

[Rails] Model validation dependent upon session data being set?

2010-02-27 Thread robo
Ok so I have a few models that need to interact with each other - Blog, Post, and User. I'll get their relationships out of the way: Blog has_many :posts has_and_belongs_to_many :users (by way of a join table, a blog can have many contributing users) Post belongs_to :blog belongs_to

[Rails] Re: Model validation dependent upon session data being set?

2010-02-27 Thread robo
Actually, I'm not so sure if post creation is passing the validation test either :) Sorry for being confusing. On Feb 27, 11:09 am, robo chase.delanguille...@gmail.com wrote: Ok so I have a few models that need to interact with each other - Blog, Post, and User.  I'll get their relationships

Re: [Rails] Model validation dependent upon session data being set?

2010-02-27 Thread Colin Law
On 27 February 2010 17:09, robo chase.delanguille...@gmail.com wrote: Ok so I have a few models that need to interact with each other - Blog, Post, and User.  I'll get their relationships out of the way: Blog  has_many :posts  has_and_belongs_to_many :users (by way of a join table, a blog

[Rails] Re: %= % Interpolation question

2010-02-27 Thread Dudebot
It still displays the literal and not the interpolation :( On Feb 27, 10:41 am, AGoofin amor...@gmail.com wrote: %= bar.to_s % On Feb 27, 11:30 am, Dudebot craign...@gmail.com wrote: OK, here's what I have in app/views/molds/show.html.erb: trtd%= @mold.body.gsub( \n, br / ) %/td/tr

Re: [Rails] Re: %= % Interpolation question

2010-02-27 Thread Colin Law
On 27 February 2010 16:30, Dudebot craign...@gmail.com wrote: OK, here's what I have in app/views/molds/show.html.erb: trtd%= @mold.body.gsub( \n, br / ) %/td/tr The controller finds @patient, and @patient.id = 2 If @mold.body = The patients id is %= @patient.id % Then the view displays

[Rails] Rails 3 - rails runner doesn't work here

2010-02-27 Thread meefs...@googlemail.com
Hi, I'm currently playing with Rails 3 (I'm new to rails, coming from PHP background). Everything works good so far, until yesterday, when I tried to setup a cronjob. The most common way to starting regular jobs seems to be using rails runner, right? So, as a test I've created a class Mytest in

[Rails] Paperclip upload fails sometimes

2010-02-27 Thread @shaan
Hello, My application is a rails-postgresql application which uses paperclip (ImageMagick-6.5.4-10-Q16-windows-dll.exe installed on WinXP). The application's image uploading feature works consistently right on my development PC, however it is inconsistent on a different server PC (used for

[Rails] Re: %= % Interpolation question

2010-02-27 Thread Dudebot
Thanks, Colin! I'd like to give the user the flexibility to make a template that interpolates objects within it. Sort of like a mail merge. The templates are stored as text entries in a database. The idea is, say you have something like this as a text entry in the database Dear Mr. %=

[Rails] automatic link generator based on keyword

2010-02-27 Thread Dan Paul
Hello, I have an site similar to a wiki, where there is a lot of content displayed per page. I was wondering if there was a plugin that would automatically add link_to tags on keywords that I specified and link them to the pages that I specify. For example the plugin I would identify the

[Rails] Re: Inconsistent auto generated fixture IDs

2010-02-27 Thread Matt Jones
On Feb 26, 12:23 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Feb 26, 4:17 pm, blim8183 blim8...@gmail.com wrote: I'm having an issue where the auto generated IDs in the fixtures are inconsistent from my machine to that of the other developers working on the project. The

[Rails] Re: Can a server make a post to itself?

2010-02-27 Thread Matt Jones
On Feb 26, 2:29 pm, dino d. dinodorr...@yahoo.com wrote: Hi- I have a rails app where a form gets submitted, and that data from the form has to be validated.  It's a widget app, so other sites will use the validation routine, but I also want to use it myself, from the same server that does

[Rails] Re: Paperclip upload fails sometimes

2010-02-27 Thread Fernando Perez
I am experiencing great problems uploading with Safari. Which browser are you using? -- 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 group, send email to

[Rails] Re: rails 3 on debian

2010-02-27 Thread Fernando Perez
1) don't use Debian 2) don't rely on *any* brain-dead, perpetually out-of-date package management system 3) remove anything ruby/rails-related from your system and install fresh from source At least, that's what I would do... :-) -- Hassan Schroeder

[Rails] Re: Postgresql error in connecting to database - invalid response to ssl negotiation

2010-02-27 Thread Fernando Perez
Why SSL? DB and application are on different machines? -- 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 group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from

[Rails] Re: Desktop sharing software for linux fedora 10?

2010-02-27 Thread Fernando Perez
shyam mohan wrote: HI all please tell me if there in any Desktop sharing software for linux fedora 10? What for? Free or commercial? -- 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

Re: [Rails] Re: %= % Interpolation question

2010-02-27 Thread Craig White
On Sat, 2010-02-27 at 10:12 -0800, Dudebot wrote: Thanks, Colin! I'd like to give the user the flexibility to make a template that interpolates objects within it. Sort of like a mail merge. The templates are stored as text entries in a database. The idea is, say you have something like

Re: [Rails] Desktop sharing software for linux fedora 10?

2010-02-27 Thread Craig White
On Sat, 2010-02-27 at 11:42 +0530, shyam mohan wrote: HI all please tell me if there in any Desktop sharing software for linux fedora 10? Fedora 10 is End of Life and should be upgraded. VNC and FreeNX are both available from yum installs. I suggest FreeNX but only after you upgrade to a

Re: [Rails] Re: rails 3 on debian

2010-02-27 Thread Hassan Schroeder
On Sat, Feb 27, 2010 at 10:40 AM, Fernando Perez li...@ruby-forum.com wrote: Disregard 1 2 as they are just trolls. Au contraire - I see so many cases of people struggling with problems directly caused by the Debian way of packaging 3rd-party software (not just Ruby-related). The OP's problem

[Rails] Re: %= % Interpolation question

2010-02-27 Thread Dudebot
I'm no expert at Rails, Craig, but I've been writing working Rails code for about 8 months now on more than a few projects. I've read Agile Development more than once, and have over the course of time watched scores of Rails webcasts. If you have a solution to my question, I'd appreciate it. I

Re: [Rails] Model validation dependent upon session data being set?

2010-02-27 Thread Michael Pavling
On 27 February 2010 17:09, robo chase.delanguille...@gmail.com wrote: I should note that @user is a variable set by my ApplicationController using a before_filter.  really sure what's going on here, so any help is appreciated.  I'm guessing the @user set by my app controller probably isn't

Re: [Rails] Model validation dependent upon session data being set?

2010-02-27 Thread Michael Pavling
On 27 February 2010 19:24, Michael Pavling pavl...@gmail.com wrote: So you need to create a method on your controller that will return the @user object. The convention for this method seems to be to call it current_user. *ahem* Of course... an instance of a model doesn't have access to

[Rails] DRY question

2010-02-27 Thread Dudebot
I need to have the exact same method available in all controllers and in all views. Right now, I have it repeated in app/controllers/ application_controller.rb and app/helpers/application_helper.rb. In DRY tradition, what's the best way to only have it in one place? TIA, Craig -- You received

Re: [Rails] DRY question

2010-02-27 Thread ben wiseley
Just put it in a helper and include that helper in ApplicationController like this include MyHelperWithGlobalStuffInIt On Sat, Feb 27, 2010 at 3:08 PM, Dudebot craign...@gmail.com wrote: I need to have the exact same method available in all controllers and in all views. Right now, I have it

[Rails] Re: Model validation dependent upon session data being set?

2010-02-27 Thread robo
Hey, that did the trick. Thanks for that! On Feb 27, 1:36 pm, Michael Pavling pavl...@gmail.com wrote: On 27 February 2010 19:24, Michael Pavling pavl...@gmail.com wrote: So you need to create a method on your controller that will return the @user object. The convention for this method

[Rails] Re: DRY question

2010-02-27 Thread Dudebot
On Feb 27, 5:10 pm, ben wiseley wisel...@gmail.com wrote: Just put it in a helper and include that helper in ApplicationController like this include MyHelperWithGlobalStuffInIt You're right, putting include ApplicationHelper into application_controller.rb does the trick. But wasn't that

[Rails] Re: Rails 3 - rails runner doesn't work here

2010-02-27 Thread meefs...@googlemail.com
Hm, seems to be a problem in the older rails beta (the one you install with 'gem install rails --pre'). With rails -v = Rails 3.0.0.beta1 the error disappears ;-) Regards Christian -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] SEO friendly routing

2010-02-27 Thread Vadim Sigaev
Hi all! I'm moving to Ruby on Rails from PHP/ZendFramework. And i cannot understand how to make such routing model: I am trying to develop articles site from scratch, so i have article model with fields: id, title, section, alias and body, also i have sections tree for navigation, each section

[Rails] Rails Server Failing - No such file or directory - tmp/pids/server.pid

2010-02-27 Thread Merrick Christensen
I apologize for my stupidity. I've been running rails on this machine for a few months. I have upgraded to Ruby on Rails 3 to start playing around. When running the rails server I get the following output. Any help is much appreciated. I installed Rails 3 very easily on my box at work. But here,

[Rails] Persistent Sessions

2010-02-27 Thread Michael Murillo
Hi there, I am trying to figure out how to have persistent sessions (with like a month until expiration) for my users, sort of like a remember me functionality but that is handled automatically on login. I am hoping I can get some help from someone who is more experienced with Rails. I am

[Rails] Re: SEO friendly routing

2010-02-27 Thread Sohan
Try the plugin at http://github.com/smsohan/acts_as_permalinkable On Feb 27, 7:37 pm, Vadim Sigaev li...@ruby-forum.com wrote: Hi all! I'm moving to Ruby on Rails from PHP/ZendFramework. And i cannot understand how to make such routing model: I am trying to develop articles site from

[Rails] Re: rails 3 on debian

2010-02-27 Thread Ken Paul
Yes, Rubygems must be installed from source. Depending on your tastes, Ruby can also be installed from source. Disregard 1 2 as they are just trolls. what about ubuntu Linux, does it also provide out dated rails related resources? -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Persistent Sessions

2010-02-27 Thread Conrad Taylor
Sent from my iPhone On Feb 27, 2010, at 7:16 PM, Michael Murillo li...@ruby-forum.com wrote: Hi there, I am trying to figure out how to have persistent sessions (with like a month until expiration) for my users, sort of like a remember me functionality but that is handled automatically

Re: [Rails] Re: DRY question

2010-02-27 Thread ben wiseley
I've wondered about that too. That doesn't work for me either. It doesn't raise an error but doesn't include :all either. On Sat, Feb 27, 2010 at 4:38 PM, Dudebot craign...@gmail.com wrote: On Feb 27, 5:10 pm, ben wiseley wisel...@gmail.com wrote: Just put it in a helper and include that

[Rails] Re: Please Help: Accessing Ruby app brings up Apache test page

2010-02-27 Thread rezilient
Oh, yes it is colon in the actual httpd.conf, I typo'd when I was removing my actual IP address. The website is accessible without problems, except Ruby is not loading up. Is there any way I can test if Ruby is indeed installed correctly? What could I be missing? Thanks. On Feb 27, 7:02 am,

Re: [Rails] Re: Please Help: Accessing Ruby app brings up Apache test page

2010-02-27 Thread Simon Macneall
I'd cd into your app dir and run ruby script/server then try to hit your app on port 3000, if that works, rails is set up ok and it's your apache/passenger setup that is wrong On Sun, 28 Feb 2010 14:20:51 +0800, rezilient rezili...@gmail.com wrote: Oh, yes it is colon in the actual

[Rails] Couldn't find User without an ID

2010-02-27 Thread ashu
users_controller :-- def show @user = User.find(params[:id]) end show.html.erb :-- h1Showing user/h1 pthName/th: %=h @user.name%/p pthRole/th: %=h @user.role%/p pthPassword/th: %=h @user.password%/p pthConfirmation Password/th: %=h @user.confirmation_password%/ p %= link_to 'Back',