[Rails] Re: rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-04 Thread Matt Jones
It looks like Gem::Commands::UnpackCommand#get_path changed it's signature (from 2 args to 1) fairly recently - and much more recently than gemsonrails was last updated (July 2008 according to Github). You'll definitely want to switch to a different mechanism for vendoring gems. --Matt Jones On

[Rails] REE & application frozen gems

2010-06-04 Thread tispratik
I have the following versions of ruby installed in my production env. ubuntu ~ > /usr/bin/ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] ubuntu ~ > /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby -v ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise

[Rails] Re: problem with database still sqlite3 and i want mysql

2010-06-04 Thread gezope
Thank you for all for your help, you are really helpful! I uninstalled all gems from gem list. Than I removed gem and than removed ruby. Then: 1. sudo apt-get install ruby ; ruby -v -> 1.8.7 2. sudo apt-get install rubygems ; gem -v -> 1.3.5. 3 sudo gem install rails ; rails -v or rails --version

[Rails] Re: Mac OS/X and Rails 3 ?

2010-06-04 Thread Marnen Laibow-Koser
ShellScripter wrote: > Although i installed my RoR 3 with the precedence command , but i > recommend u the lazy package RubyStack > http://bitnami.org/stack/rubystack > give it a try! Irrelevant to the question and bad advice anyway. Rubystack doesn't seem particularly well suited to Mac OS. B

[Rails] Re: Ruby breakpoint has weird idea of what local_variables a

2010-06-04 Thread RichardOnRails
> And the problems were...? I'll take another run at ActiveScaffold in a week or two. Right now, I'm applying ruiby-debug and logging in place of my long-years of inserting ad hoc debugging, e.g puts in Ruby or printf in C++. But I'm letting A.S. distract me from my current path. Nevertheless,

[Rails] Re: Mac OS/X and Rails 3 ?

2010-06-04 Thread ShellScripter
Although i installed my RoR 3 with the precedence command , but i recommend u the lazy package RubyStack http://bitnami.org/stack/rubystack give it a try! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] Re: Ajax fails in IE8

2010-06-04 Thread ct9a
Hi, Colin, Every page I make has to pass by W3C's validation. It's a pity why IE8 doesn't really support prototype and rails' JS helpers are made out of prototype... Any more ideas guys? Gordon On Jun 5, 1:17 am, Colin Law wrote: > Just a thought, have you checked that your html is valid

[Rails] Visual Effect: insert new stuff, then slide open

2010-06-04 Thread Chris Kalaboukis
Hi guys: Thanks for your help so far - think I've progressed pretty far down the Rails front but I think I'm getting stuck, maybe you can help me out: I've got a twitter like app where I'm trying to display new tweets as they come in. This is what I'm doing right now: render :update do |page|

[Rails] Re: Ruby breakpoint has weird idea of what local_variables a

2010-06-04 Thread Marnen Laibow-Koser
RichardOnRails wrote: > Hi Marnen, > >> ActiveScaffold is dead simple to use. Perhaps if you were to ask >> questions about the problems you're actually having, we could help. > > It probably is, but I've run into problems a couple of times, And the problems were...? > so I > shelved the idea

[Rails] Re: Ruby breakpoint has weird idea of what local_variables a

2010-06-04 Thread RichardOnRails
Hi Marnen, > ActiveScaffold is dead simple to use. Perhaps if you were to ask > questions about the problems you're actually having, we could help. It probably is, but I've run into problems a couple of times, so I shelved the idea for the time being. Anyway, writing some Ruby to manipulate a

[Rails] Re: New to rails, a little model help please

2010-06-04 Thread Marnen Laibow-Koser
Alex Smith wrote: > I knew it was going to be simple! Adding _id worked like a charm. Thanks > for the help. You're most welcome. BTW, are you the Alex Smith I used to work with? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --

[Rails] Problems with Ruby on Rails and Mechanize gem?

2010-06-04 Thread Jorge alejandro Mendoza torres
Hi all. I'm doing a web site using "WWW::Mechanize". >From my application, when I'm using the web site, I have a link, and when I make click on the Iink, I want to log with my google mail, this already works but now, I want to show the home page after logged. This is my source: require 'rubyg

[Rails] Re: New to rails, a little model help please

2010-06-04 Thread Alex Smith
I knew it was going to be simple! Adding _id worked like a charm. Thanks for the help. -- 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...@googl

[Rails] Re: New to rails, a little model help please

2010-06-04 Thread Marnen Laibow-Koser
Alex Smith wrote: > Hey guys I'm having a little trouble what I think should be a pretty > simple relationship between tables. > > Player.rating is a f-key to Rating.id, both fields are integers > > When I try to add a new player I get this error message > > ActiveRecord::AssociationTypeMismatch

[Rails] Re: New to rails, a little model help please

2010-06-04 Thread Alex Smith
Also, here are the params passed to the server "player"=> { "first_name"=>"Alex", "last_name"=>"Zwinge", "email_address"=>"poolshark1...@hotmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "phone_number"=>"512-492-5708", "rating"=>"1", < correct value

[Rails] New to rails, a little model help please

2010-06-04 Thread Alex Smith
Hey guys I'm having a little trouble what I think should be a pretty simple relationship between tables. Player.rating is a f-key to Rating.id, both fields are integers When I try to add a new player I get this error message ActiveRecord::AssociationTypeMismatch in PlayersController#create Ratin

[Rails] Mac OS/X and Rails 3 ?

2010-06-04 Thread Audrey Lee
Hello List, Label me a newb, but how do you install Rails 3 on your Mac? Google sent me to these URLs: http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release/ http://guides.rails.info/3_0_release_notes.html http://asciicasts.com/episodes/200-rails-3-beta-and-rvm >From early Feb 2010 I se

[Rails] Re: Ajax, jQuery

2010-06-04 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: > Ralph Shnelvar wrote: >> I am not sure where I should post this since this seems to be an >> "interdisciplinary" problem >> >> I am having trouble communicating between my javascript and my Rails >> app. >> > [...] > > Now that you've shown us your code, please expla

[Rails] [Rails 3] How to refer to birthday(1i) in a AR

2010-06-04 Thread ShellScripter
Hi , there , first of all i wanna to express my regard to the Rails 3 dev. team's effort , the work is really amazing ! Really speed up a lot the performance !! Well , i still a rookie guy and have a question for ask T_T : i have two association ARs : User has_one Account , and i have used the ac

[Rails] Free Webinar! Using Cucumber + Webrat to Test Ruby Apps in the Cloud

2010-06-04 Thread Ashley
Thursday, June 15, 2010 at 11 am PDT Register here: http://bit.ly/abJDuC Cucumber, a Ruby on Rails tool, is incredibly useful for the full- stack testing of web applications. Using domain-specific language that reads similarly to plain English, it allows non-technical domain experts to write execu

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Raf Jaf
Marnen Laibow-Koser wrote: > If you disagree with the advice you're getting, that's fine. If you're > claiming that there is no right or wrong...well...then I don't want to > be the one maintaining your codebase. :) I actually write beautiful code, it's sexy too. Relax and have a nice weekend.

Re: [Rails] Re: regular expression

2010-06-04 Thread Rob Biedenharn
Well, Google found this one pretty quick: http://www.mizar.dk/XPath/Default.aspx Maybe it can find others, too, if that one doesn't work for you. -Rob On Jun 4, 2010, at 4:40 PM, chewmanfoo wrote: Do you know a site of that quality (rubular.com) for XPath??? That site rocks!!! On Jun 4, 1:16

[Rails] Re: regular expression

2010-06-04 Thread chewmanfoo
Do you know a site of that quality (rubular.com) for XPath??? That site rocks!!! On Jun 4, 1:16 pm, Srinivas Golyalla wrote: > ENTERhttp://rubular.com/ > > I Need regular expression that will match the string '123_456_7890' >  not '123_456_789' > > On Jun 4, 9:38 am, Peter De Berdt wrote: > > >

[Rails] Re: Ajax, jQuery

2010-06-04 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: > I am not sure where I should post this since this seems to be an > "interdisciplinary" problem > > I am having trouble communicating between my javascript and my Rails > app. > [...] Now that you've shown us your code, please explain how the actual behavior of your app d

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Marnen Laibow-Koser
Raf Jaf wrote: > > >> JMS: not sure. Mainframes: sure, if they expose the proper interface. > > I am interested in native support. Of course it's possible to integrate > Ruby with a mainframe if the mainframe exposed a http endpoint; this is > beyond obvious. And what would a native interfac

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Raf Jaf
> JMS: not sure. Mainframes: sure, if they expose the proper interface. I am interested in native support. Of course it's possible to integrate Ruby with a mainframe if the mainframe exposed a http endpoint; this is beyond obvious. > In this case, you are wrong. Rails is a full-stack framew

[Rails] Ajax, jQuery

2010-06-04 Thread Ralph Shnelvar
I am not sure where I should post this since this seems to be an "interdisciplinary" problem I am having trouble communicating between my javascript and my Rails app. Here's the snipped of code from my controller - - - def poll p params puts "Got here:" # debugger @some_object =

[Rails] Re: sqlite specified in database.yml, rails tries to use mysql

2010-06-04 Thread Les Peabody
Trausti Thor Johannsson wrote: > Have you checked which environment you are running in ? > > Have you removed ALL mysql config from database.yml ? > > > Trausti Solved. I double checked both of these items, but both were in order. I solved the problem by grabbing hold of a libmysql.dll file

Re: [Rails] sqlite specified in database.yml, rails tries to use mysql

2010-06-04 Thread Trausti Thor Johannsson
Have you checked which environment you are running in ? Have you removed ALL mysql config from database.yml ? Trausti On Fri, Jun 4, 2010 at 8:40 PM, Les Peabody wrote: > Hi All, > > I've run into an interesting (and annoying) problem.  I have a > development environment on a Windows machine a

Re: [Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Rob Biedenharn
On Jun 4, 2010, at 2:39 PM, Raf Jaf wrote: Marnen Laibow-Koser wrote: Raf Jaf wrote: According to my research, I have found nothing to indicate Rails/Ruby supports native integration with JMS and mainframes. It was only last week that we looked at Rails for the first time, simply because w

[Rails] Embedding a form is lots of various place

2010-06-04 Thread theduz
Hi, I've been asked to put a 'contact us' form in many and various places on our site. Initially, I proposed we simply link to the contact us form, which is already handled by a model, view and controller, but the users would like the form itself to appear. I can certainly enclose the form in a

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Marnen Laibow-Koser
Raf Jaf wrote: [...] > According to my research, I have found nothing to indicate Rails/Ruby > supports native integration with JMS and mainframes. > JMS: not sure. Mainframes: sure, if they expose the proper interface. DataFabric might also help you. > It was only last week that we looked at

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Raf Jaf
Here is that article about implementing ActiveRecord in Java http://peterbacklund.blogspot.com/2007/07/implementing-activerecord-in-java.html -- 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

[Rails] Ajax post from a mobile app

2010-06-04 Thread Greg Ma
Hi, I'm a trying to create a user using Ajax from a mobile app with javascript and I'm struggling!!! Here is what I'm trying: user = {username:'plop', password:'plip', password_confirmation:'plip'}; new Ajax.Updater('all', HOST + 'users/create',{ method: 'POST', parameters:{'user': user} });

[Rails] sqlite specified in database.yml, rails tries to use mysql

2010-06-04 Thread Les Peabody
Hi All, I've run into an interesting (and annoying) problem. I have a development environment on a Windows machine and on a remote Linux machine. I cloned my environment on the Linux machine over to my Windows box. I have installed all the required gems for the project. When I try to reconfigur

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Raf Jaf
Marnen Laibow-Koser wrote: > Raf Jaf wrote: > [...] >> The point of avoiding ActiveRecord is because our data sources are >> disparate, meaning that they include databases, mainframes, and, in some >> cases, sources that expose only a message-based interfaces (JMS, etc). > > ActiveRecord and Act

[Rails] Re: Re: Alternative to ActiveRecord for populating model ob

2010-06-04 Thread Marnen Laibow-Koser
Rob Biedenharn wrote: [...] > > > Reusing code that exists and WORKS is typically a very sensible idea. Quite so. The bad idea here is using Rails only for the presentation tier. If the OP is really dead-set on using Rails and on reusing the Java data access framework, then the right thing t

Re: [Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Rob Biedenharn
On Jun 4, 2010, at 2:10 PM, Marnen Laibow-Koser wrote: Raf Jaf wrote: [...] The point of avoiding ActiveRecord is because our data sources are disparate, meaning that they include databases, mainframes, and, in some cases, sources that expose only a message-based interfaces (JMS, etc). Ac

[Rails] Re: regular expression

2010-06-04 Thread Srinivas Golyalla
ENTER http://rubular.com/ I Need regular expression that will match the string '123_456_7890' not '123_456_789' On Jun 4, 9:38 am, Peter De Berdt wrote: > On 04 Jun 2010, at 14:28, Srinivas Golyalla wrote: > > > Can u help me in simple regular expression that will match the string > > ‘123_456_

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Marnen Laibow-Koser
Raf Jaf wrote: [...] > The point of avoiding ActiveRecord is because our data sources are > disparate, meaning that they include databases, mainframes, and, in some > cases, sources that expose only a message-based interfaces (JMS, etc). ActiveRecord and ActiveResource will have no problem with

[Rails] Re: How to show a Timer for lock expiry when editing a recor

2010-06-04 Thread Robert Walker
Vijay wrote: > I'm newbie to ruby on rails. > In my application, i was trying to show the remaining time the user is > allowed to edit an instance record( like milestones, cheklists etc.). > I was locking it from multiple users to edit it at the sametime. > When the user clicks the edit link_to i n

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Raf Jaf
Marnen Laibow-Koser wrote: > Raf Jaf wrote: >> Hi, >> >> We are using Ruby on Rails for an internal project. The data for our >> model objects exists in many different data sources (database, >> mainframe, etc), so we we need to avoid using ActiveRecord. > > That doesn't follow. ActiveRecord is

[Rails] Re: Alternative to ActiveRecord for populating model objects

2010-06-04 Thread Marnen Laibow-Koser
Raf Jaf wrote: > Hi, > > We are using Ruby on Rails for an internal project. The data for our > model objects exists in many different data sources (database, > mainframe, etc), so we we need to avoid using ActiveRecord. That doesn't follow. ActiveRecord is capable of dealing with multiple data

[Rails] Re: Alternative to ActiveRecord for populating model objects??

2010-06-04 Thread Raf Jaf
Ivan Nastyukhin wrote: > active resource > with rest api from your java model > > or jruby and use natvie java classes > Ivan Nastyukhin > dieinz...@me.com So when using ActiveResource as the base for a model class, it basically populates the model using an external http resource? Like this...

[Rails] Integrum is Hiring!

2010-06-04 Thread Chris Conrey
We're growing again at Integrum. With a stable of long term clients and growth in the mobile development side as well, we're looking to bring in some more talented developers to our team. We're currently looking for Rails developers from n00b to the cliched 'rockstar' level. We do real Agile (ca

Re: [Rails] Alternative to ActiveRecord for populating model objects??

2010-06-04 Thread Ivan Nastyukhin
active resource with rest api from your java model or jruby and use natvie java classes Ivan Nastyukhin dieinz...@me.com On Jun 4, 2010, at 8:11 PM, Raf Jaf wrote: > Hi, > > We are using Ruby on Rails for an internal project. The data for our > model objects exists in many different data s

[Rails] Alternative to ActiveRecord for populating model objects??

2010-06-04 Thread Raf Jaf
Hi, We are using Ruby on Rails for an internal project. The data for our model objects exists in many different data sources (database, mainframe, etc), so we we need to avoid using ActiveRecord. Our development teams built a data service layer in Java that provides access to our company's informa

[Rails] Re: Re: Can Rails cache a Controller "as long as code not c

2010-06-04 Thread Marnen Laibow-Koser
Colin Law wrote: > On 4 June 2010 15:23, Marnen Laibow-Koser wrote: >> Jian Lin wrote: >>> At work, we have a situation where when >>> >>> � script/server >>> >>> is run, then all the controller code is cached. �This is to speed up the >>> development server. �But that will mean that whenever we c

Re: [Rails] How to specify which database we're using?

2010-06-04 Thread Colin Law
On 4 June 2010 15:45, Andy Jeffries wrote: > rake db:seed RAILS_ENV=test Will that work? I realise that it will seed the test db but I thought that test db was cleared and refilled from fixtures for each test. Colin > > -- > Andy Jeffries > http://andyjeffries.co.uk/      #rubyonrails #mysql #

Re: [Rails] Re: Can Rails cache a Controller "as long as code not change

2010-06-04 Thread Colin Law
On 4 June 2010 15:23, Marnen Laibow-Koser wrote: > Jian Lin wrote: >> At work, we have a situation where when >> >>   script/server >> >> is run, then all the controller code is cached.  This is to speed up the >> development server.  But that will mean that whenever we change the >> controller co

Re: [Rails] Ajax fails in IE8

2010-06-04 Thread Colin Law
On 4 June 2010 13:58, ct9a wrote: > hi guys, > >  I am testing a new optional funtionality in my site with IE 8 after > success with Firefox 3.6.3, chrome and safari. > >  The new functionality basically sees a "sub category" drop down list > get generated in my form as soon as a "Category" value

[Rails] Re: Scheduled tasks in Rails: Cron + wget = Best solution?

2010-06-04 Thread Tom Ha
Thanks for all your suggestions! (I like rufus-scheduler pretty much -> small memory foot print...) -- 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 rubyonrai

[Rails] Re: Running Application

2010-06-04 Thread anon_comp
On Jun 4, 11:00 am, Peter Hickman wrote: > Oops sorry about that, it usually works for me. It's fine. My solution is to go to Virtual Box. -- 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

Re: [Rails] Re: Running Application

2010-06-04 Thread Peter Hickman
On 4 June 2010 15:55, anon_comp wrote: > > When you find it you could copy it into c:\windows\system (or somewhere > > similar under c:\windows that has a whole load of DLLs in it already). > > I copied it over and now my system has gone haywire. Not your fault. I > think the developers should've

[Rails] Re: Running Application

2010-06-04 Thread anon_comp
> Have you looked for it on your hard disk? It may be already installed but > not in a place that the application can find it. Yeah, it's in my hard disk when I install Ruby 1.8.7 =/ > When you find it you could copy it into c:\windows\system (or somewhere > similar under c:\windows that has a w

[Rails] Re: How to specify which database we're using?

2010-06-04 Thread Ramos
Thanks. On 4 Jun, 15:45, Andy Jeffries wrote: > rake db:seed RAILS_ENV=test > > -- > Andy Jeffrieshttp://andyjeffries.co.uk/     #rubyonrails #mysql #jquery > Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS > Company number: 5452840 > > On 4 June 2010 15:31, Ramos wrote: > > > I am

Re: [Rails] Re: Running Application

2010-06-04 Thread Peter Hickman
On 4 June 2010 15:32, anon_comp wrote: > On Jun 4, 10:22 am, Ivan Nastyukhin wrote: > > the next, add this dll to library path, or system folder > > Now the issue is finding the dll. I tried looking it up in Google and > failed to find it. > > Have you looked for it on your hard disk? It may be

Re: [Rails] How to specify which database we're using?

2010-06-04 Thread Andy Jeffries
rake db:seed RAILS_ENV=test -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 4 June 2010 15:31, Ramos wrote: > I am seeding my environment for testing, but I am doing it upon my

[Rails] Re: click the address to display google map

2010-06-04 Thread chewmanfoo
examples: http://juixe.com/techknow/index.php/2007/02/07/rails-google-maps-plugin/ http://earthcode.com/blog/2006/04/rails_geocoding_and_google_map.html On Jun 4, 9:33 am, Marnen Laibow-Koser wrote: > Guo Yangguang wrote: > > hi > >   My app has location for every user,i want the location to di

[Rails] Re: Running Application

2010-06-04 Thread anon_comp
On Jun 4, 10:25 am, Marnen Laibow-Koser wrote: > anon_comp wrote: > Don't insult people who are in a position to help you. I'm not intending to insult, I just don't like it when people point out the most obvious thing to solve the situation especially when it's in an error message. At any rat

[Rails] Re: click the address to display google map

2010-06-04 Thread Marnen Laibow-Koser
Guo Yangguang wrote: > hi > My app has location for every user,i want the location to display a > little google map in a way like ajax when clicking the location? I am a > javascript and google map api idiot,can you help me? is there any > tutorial? I have looked over the goog map api,but can not

[Rails] Re: Running Application

2010-06-04 Thread anon_comp
On Jun 4, 10:22 am, Ivan Nastyukhin wrote: > yep) > the radical decision, its stop using rails and windows, many bugs wil be > waiting u in the future) Thank you. I'm totally aware of my inadequate OS, but I don't have much of a choice. I might just install Ubuntu > the next, add this dll to l

[Rails] How to specify which database we're using?

2010-06-04 Thread Ramos
I am seeding my environment for testing, but I am doing it upon my development environment, and in fact I'd like to seed my test environment... How can I do that? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, sen

[Rails] Re: undefined method `tab' for radiant

2010-06-04 Thread Marnen Laibow-Koser
Smit Shah wrote: > Hi all... > > I am new to radiant cms. I have tried to install blog and liveblog > extensions. But in both cases I got the following error. > > rake aborted! > undefined method `tab' for # > > and > > rake aborted! > undefined method `tab' for # > > > Any idea? I am using r

[Rails] Re: Running Application

2010-06-04 Thread Marnen Laibow-Koser
anon_comp wrote: > I'm getting an error message when I try to run my application (ruby > script/server), normally I'd hit "OK" and the application would run > without issues, but now it has completely failed to deploy. > > I'm running on Windows 32, Ruby 1.9.1, Rails 2.3.8 > > The message states:

[Rails] Re: Can Rails cache a Controller "as long as code not change

2010-06-04 Thread Marnen Laibow-Koser
Jian Lin wrote: > At work, we have a situation where when > > script/server > > is run, then all the controller code is cached. This is to speed up the > development server. But that will mean that whenever we change the > controller code, we need to restart the server. Yes, that's normal be

Re: [Rails] Running Application

2010-06-04 Thread Ivan Nastyukhin
yep) the radical decision, its stop using rails and windows, many bugs wil be waiting u in the future) the next, add this dll to library path, or system folder Ivan Nastyukhin dieinz...@me.com On Jun 4, 2010, at 6:20 PM, anon_comp wrote: > I'm getting an error message when I try to run my

[Rails] Running Application

2010-06-04 Thread anon_comp
I'm getting an error message when I try to run my application (ruby script/server), normally I'd hit "OK" and the application would run without issues, but now it has completely failed to deploy. I'm running on Windows 32, Ruby 1.9.1, Rails 2.3.8 The message states: "This application has failed t

[Rails] Re: RE: MysQL and Ruby

2010-06-04 Thread Marnen Laibow-Koser
Luciano Sousa wrote: > Hi man, > The mysql gem is default in rails, No it's not! It hasn't been since Rails 2.2. You need to install the mysql gem. > you only need to set the mysql db. > > ___

[Rails] How to show a Timer for lock expiry when editing a record

2010-06-04 Thread Vijay
I'm newbie to ruby on rails. In my application, i was trying to show the remaining time the user is allowed to edit an instance record( like milestones, cheklists etc.). I was locking it from multiple users to edit it at the sametime. When the user clicks the edit link_to i need to display the time

RE: [Rails] MysQL and Ruby

2010-06-04 Thread Luciano Sousa
Hi man, The mysql gem is default in rails, you only need to set the mysql db. __ Luciano Sousa Linux User #456387 http://www.lucianosousa.net -Original Message- From: rubyonrails-talk

Re: [Rails] regular expression

2010-06-04 Thread Peter De Berdt
On 04 Jun 2010, at 14:28, Srinivas Golyalla wrote: Can u help me in simple regular expression that will match the string ‘123_456_7890’ but not ‘123_456_789’. The thing you're asking is not very specific, there's a lot to be interpreted, but this might be what you are looking for: \d{3}_\d{

[Rails] Re: regular expression

2010-06-04 Thread Frederick Cheung
On Jun 4, 1:28 pm, Srinivas Golyalla wrote: > Can u help me in simple regular expression that will match the string > ‘123_456_7890’ but not ‘123_456_789’. You're going to have to be a little more specific - the regular expression /0/ matches the first string and not the second but that's proba

[Rails] Re: Command require

2010-06-04 Thread Frederick Cheung
On Jun 4, 1:30 pm, Srinivas Golyalla wrote: > In Ruby there is a command called ‘require’. Explain what this command > means and write an example of how it is used to include a Ruby Gem in > a file. This sounds an awful lot like homework. The ruby api docs are at http://ruby-doc.org/core/ Fred

[Rails] Re: Apache freezing with Passenger

2010-06-04 Thread ngocdaothanh
> Has anyone else experienced such a problem? I have. And I did not know the reason why, but running Rails directly on port 80 not via Passenger/Apache does not have this problem. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] Command require

2010-06-04 Thread Srinivas Golyalla
In Ruby there is a command called ‘require’. Explain what this command means and write an example of how it is used to include a Ruby Gem in a file. -- 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 ruby

[Rails] regular expression

2010-06-04 Thread Srinivas Golyalla
Can u help me in simple regular expression that will match the string ‘123_456_7890’ but not ‘123_456_789’. -- 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 unsubsc

[Rails] Re: Re: Compress css files with Rails

2010-06-04 Thread Greg Ma
Peter De Berdt wrote: > On 04 Jun 2010, at 14:46, Greg Ma wrote: > >> What is Saas? > http://sass-lang.com/ > > > Best regards > > Peter De Berdt Wow Saas looks pretty cool! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Group

[Rails] Ajax fails in IE8

2010-06-04 Thread ct9a
hi guys, I am testing a new optional funtionality in my site with IE 8 after success with Firefox 3.6.3, chrome and safari. The new functionality basically sees a "sub category" drop down list get generated in my form as soon as a "Category" value is selected from the "Category" drop down list

Re: [Rails] Re: Compress css files with Rails

2010-06-04 Thread Peter De Berdt
On 04 Jun 2010, at 14:46, Greg Ma wrote: Marnen Laibow-Koser wrote: If you use Sass (which I highly, highly recommend) then this is done for you. You get lots of other advantages too. Best, -- Marnen Laibow-Koser What is Saas? http://sass-lang.com/ Best regards Peter De Berdt -- Y

[Rails] Re: Compress css files with Rails

2010-06-04 Thread Greg Ma
Marnen Laibow-Koser wrote: > If you use Sass (which I highly, highly recommend) then this is done for > you. You get lots of other advantages too. > > Best, > -- > Marnen Laibow-Koser What is Saas? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr

[Rails] Re: How to use split method?

2010-06-04 Thread Marnen Laibow-Koser
SushilKarwa wrote: > Thanks for your help. I was not assigning the result of split. > > I know this is simple Ruby question, but I was looking for a quick > help and that' why posted my question in this group. I am not a member > of "Ruby" group. That doesn't make it OK to ask off-topic questions

[Rails] Re:

2010-06-04 Thread Marnen Laibow-Koser
Tom Mac wrote: > Hi >Did not get ny reply. Please help. It is urgent > > Tom Bumping after 5 hours doesn't make people want to help you. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: What kind of Ruby / Erb is allowed inside HAML's :javasc

2010-06-04 Thread Marnen Laibow-Koser
Jian Lin wrote: > It seems that inside of HAML's :javascript filter, no Ruby code is > allowed, not even a comment. I believe that's correct. But you should never need Ruby within JavaScript, nor should you ever need JavaScript within HTML (it's best to put it in a separate file). > > So this

[Rails] Re: Compress css files with Rails

2010-06-04 Thread Marnen Laibow-Koser
Greg Ma wrote: > Is there an option to remove all useless content in the files? such as > comments. If you use Sass (which I highly, highly recommend) then this is done for you. You get lots of other advantages too. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Poste

[Rails] Re: difference between belongs_to and references keyword?

2010-06-04 Thread Ugis Ozols
Correction to my previuos message: you can use "belongs_to" and "references" as column types in scaffold (and migrations). They do same thing: add belongs_to association to model. On Jun 4, 9:05 am, Ugis Ozols wrote: > I've written a short example about has_many, belongs_to > -http://gist.github

[Rails] Re: How to embed html to other site

2010-06-04 Thread Amar Daxini
Yudi Soesanto wrote: > Hi, > > Is there an example code to create embed code (from my site) so I can > embed > my html to other site? > > for example, I want to embed my html to other site. Here is the sample > embed > code for example: check this link [http://railstech.com/?p=30] might be hel

[Rails] Re: Re: Re: Authlogic Rails 3

2010-06-04 Thread Quinn Quinn
it worked for me. just follow the guide (http://github.com/binarylogic/authlogic_example) but in your Gemfile use: gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' and to generate a session: rails g authlogic:session user_session these should work grea

[Rails] Re:

2010-06-04 Thread Tom Mac
Hi Did not get ny reply. Please help. It is urgent Tom -- 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 f

[Rails] Re: undefined method `tab' for radiant

2010-06-04 Thread Rich
Hey Smit, Seem to be having the same issue myself whilst trying to install the settings extension, can't quite figure out why it's not working as I'm not doing anything different that usual when setting up a radiant app. If anyone else could help shed some light on the situation it would be greatl

[Rails] Re: How to use split method?

2010-06-04 Thread SushilKarwa
Thanks for your help. I was not assigning the result of split. I know this is simple Ruby question, but I was looking for a quick help and that' why posted my question in this group. I am not a member of "Ruby" group. Thanks agian, Sushil On Jun 3, 5:16 pm, Michael Pavling wrote: > On 3 June 20

[Rails] ruby on rails language problem

2010-06-04 Thread binghai
This is definitely a language issue, both of our code and our database contains Chinese characters. This is my environment: About your application's environment Ruby version 1.9.1 (i386-mingw32) RubyGems version 1.3.5 Rack version 1.0 Rails version

[Rails] Password re-check with authlogic

2010-06-04 Thread Albus Dumbledore
Hi there! I know what I am trying to do would seem laughably easy to some, but pray accept my excuses for still being nothing more than a newbie where rails is concerned. It seems there is so much to learn. And with rails it's always not about doing it, but doing it easily and meaningfully, i.e. I

[Rails] Can Rails cache a Controller "as long as code not changed"?

2010-06-04 Thread Jian Lin
At work, we have a situation where when script/server is run, then all the controller code is cached. This is to speed up the development server. But that will mean that whenever we change the controller code, we need to restart the server. So we can turn off the caching of controller code a

[Rails] How to add multi image with paperclip dynamicly

2010-06-04 Thread HH
i want add one or many image using paperclip but dynamicly -- 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 this group, send email to rubyonrails-

[Rails] Re: Scheduled tasks in Rails: Cron + wget = Best solution?

2010-06-04 Thread Greg Ma
Mutesa wrote: > Hi Tom, > > I am using BackgrounDRb and it does almost all of requirements you've > mentioned. > Check : http://backgroundrb.rubyforge.org/ > > Hope this helps! > > Mutesa Wheneverize gem -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Re: Compress css files with Rails

2010-06-04 Thread Greg Ma
Is there an option to remove all useless content in the files? such as comments. -- 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...@googlegroup

[Rails] MysQL and Ruby

2010-06-04 Thread Ziburu Debian
Hi, what is necessary to install to use the database MySQL under Aptana (Rubyb 1.8.6) My config: Windows XP PRO SP2 Wamp5 1.7.4 with MysQL 5.0.45 Aptana 2.0.4 RubyGems 1.3.5 Ruby 1.8.6 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goog

[Rails] Re: Scheduled tasks in Rails: Cron + wget = Best solution?

2010-06-04 Thread Mutesa
Hi Tom, I am using BackgrounDRb and it does almost all of requirements you've mentioned. Check : http://backgroundrb.rubyforge.org/ Hope this helps! Mutesa -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send ema

[Rails] Re: Compress css files with Rails

2010-06-04 Thread Gregory Ma
Felix Schäfer wrote: > Am 04.06.2010 um 10:37 schrieb Gregory Ma: > >> I work on a website with many css files. To improve the performance of >> the site I would to merge all my css file into one on the production >> site. >> I know I could do this using plugins, but I heard it is possible >> nati

  1   2   >