[Rails] Re: date_select

2010-01-28 Thread GreenPlastik
Without knowing more about your app and your models, I would ask what the :post refers to in your date_select. If I understand you correctly, you want to render a date select field for the 'birthdate' attribute. What model does this attribute belong to? Are you using the date_select as part of a f

Re: [Rails] Re: rails app for transfering/managing files/data

2010-01-28 Thread Christoph Jasinski
Thanks Matt, never tried S3 before and wanted to avoid extra costs. Chris -- 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

[Rails] model.errors.add ... No attribute

2010-01-28 Thread Ralph Shnelvar
I _think_ that in activerecord-2.2.2\lib\active_record\validations.rb that specifying the attribute as "" have the nice benefit of just adding the specified message that was supplied. In activerecord-2.3.5\lib\active_record\validations.rb not specifying an attribute causes a "interning empty strin

[Rails] Re: files are missing in rails app

2010-01-28 Thread Geetha Sg
Thanks for the reply. I've installed rubygems-2.3.4 and ruby-1.8.6. I will install other files of railties and let me know. regards sagi.. -- 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 po

Re: [Rails] Re: install gems problem in windows

2010-01-28 Thread kannav rajeev
install ruby gem update gem update system ruby -v gem install rails rails -v gem install mysql if needed... On Fri, Jan 29, 2010 at 12:00 PM, Ethan Gunderson wrote: > How did you install RubyGems? That version number is pretty old, the > current being 1.3.5. > > I take it from your 'I couldn'

Re: [Rails] Re: install gems problem in windows

2010-01-28 Thread Ethan Gunderson
How did you install RubyGems? That version number is pretty old, the current being 1.3.5. I take it from your 'I couldn't install any gems' comment, that you tried to install bundler and it failed? If that's the case, I would uninstall whatever you did to get a .9 version of RubyGems, and then fo

[Rails] Re: install gems problem in windows

2010-01-28 Thread senling
There is no rails gem installed in my system. Thanks senling On Jan 29, 10:57 am, kannav rajeev wrote: > uninstall rails then ruby restart system then make all processes in better > mannered way . > > > > On Fri, Jan 29, 2010 at 11:25 AM, senling wrote: > > Hi, > >  I have installed ruby and tr

Re: [Rails] install gems problem in windows

2010-01-28 Thread kannav rajeev
uninstall rails then ruby restart system then make all processes in better mannered way . On Fri, Jan 29, 2010 at 11:25 AM, senling wrote: > Hi, > I have installed ruby and trying to set rails environment. > > >ruby -v > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > > >gem environmen

[Rails] install gems problem in windows

2010-01-28 Thread senling
Hi, I have installed ruby and trying to set rails environment. >ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] >gem environment RubyGems Environment: - VERSION: 0.9.4 (0.9.4) - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8 - GEM PATH: - C:/Ruby/lib/ruby/gems/1.8

Re: [Rails] date_select

2010-01-28 Thread Craig White
On Fri, 2010-01-29 at 05:53 +0100, Smit Shah wrote: > Hi all > I am using rails 2.3.5. But I am facing the problem with date_select > tag. I have written code as follow. > > = date_select :post, :birthdate, :start_year => 1950, :end_year => > Date.today.year, :prompt => { :day => 'Select day', :mo

[Rails] RE: Re: noob question: create a link to google a parameter

2010-01-28 Thread Marnen Laibow-Koser
Alpha Blue wrote: > No problem Radu, glad to help. Definitely start with the basics and work > your way up. One thing I would definitely suggest is learning how to > create > tests for your code and to also read a few books. I own a Kindle so I > have > a small library of roughly 12 rails books

Re: [Rails] Re: Need help -Video upload progress bar

2010-01-28 Thread shyam mohan
I use this http://railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html but problem was at second step how to config Vhost.. mean where this file in system. Regards, Shyam +91-971-618-9650 sh...@crypsis.net On Thu, Jan 28, 2010 at 11:49 PM, Simone R. wrote: > shyam mo

[Rails] observe_field and IE 8

2010-01-28 Thread Craig White
I want to blame IE 8 because I designed with FF and did not see any issue but IE 8 definitely is a problem. To simplify a fairly complex page... LAYOUT.HTML.ERB <% yield %> LIST.HTML.ERB <%= options = [...@menu_topic, '']] + ApplicationHelper::CONTENT_TYPE select("menu", "topic",

[Rails] date_select

2010-01-28 Thread Smit Shah
Hi all I am using rails 2.3.5. But I am facing the problem with date_select tag. I have written code as follow. = date_select :post, :birthdate, :start_year => 1950, :end_year => Date.today.year, :prompt => { :day => 'Select day', :month => 'Select month', :year => 'Select year' } But I got error

[Rails] Re: Rails gem download problem

2010-01-28 Thread senling
Yes, you saved my time. Regards: senling On Jan 28, 7:24 pm, kannav rajeev wrote: > try to download from gemcutter > > > > On Thu, Jan 28, 2010 at 6:43 PM, senling wrote: > > Hi, > >  I'm setting the rails environment in my windows machine. > > >  While downloading the gems fromhttps://rubyforge

[Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread Jeff Lewis
Hi Dan, Depends on the needs/functionality of your app, but the two things I usually incorporate in my web apps to address production environment upgrades/maintenance are: 1) the ability to render a real-time system-wide message to all current users of the app; and 2) the ability to toggle on/of

[Rails] Session being lost before TwitterOauth callback

2010-01-28 Thread acreadinglist
I'm building something like a multi-twitter-feed-manager, using the TwitterOauth plugin to handle authorization with Twitter. Before redirecting to Twitter, I add some data to the session. When Twitter redirects to the callback, the session is empty. Can anyone explain this? Here's the controll

RE: [Rails] Re: noob question: create a link to google a parameter

2010-01-28 Thread Joel Dezenzio
No problem Radu, glad to help. Definitely start with the basics and work your way up. One thing I would definitely suggest is learning how to create tests for your code and to also read a few books. I own a Kindle so I have a small library of roughly 12 rails books and 4 ruby books. If you don't

[Rails] Rails3 + Ruby 1.9.1 p376 + mySQL Test Server for everybody

2010-01-28 Thread Simone R.
Hi everybody, right now I'm paying around on this configuration if you need a check for a gem or an application just let me know and I will try to see if it works on this machine. Later I will post the script for an automatic install of this config. -- Posted via http://www.ruby-forum.com/.

Re: [Rails] Re: What is the purpose of :conditions on a belongs_to asso

2010-01-28 Thread Dave Sims
If you know of documentation in addition to the api docs linked from my original post which might be helpful, feel free to include a link. On Thu, Jan 28, 2010 at 3:47 PM, Chris Drappier wrote: > read the documentation on this. it explains it pretty thoroughly. > > On Thu, Jan 28, 2010 at 3:40 PM

[Rails] Re: collection_select

2010-01-28 Thread Steve Castaneda
Looks like this is already known: http://dev.rubyonrails.org/ticket/10768 -- 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.

[Rails] simple captcha image not displaying

2010-01-28 Thread Christine G.
Attached is an image of my problem but here goes. Installed RoR to run Raillist. I installed it per instructions and everything seems to be working great except I can't get my captcha images to show I am not sure what the problem is as I am a complete noob to RoR. Any pointers towards a direction

[Rails] Re: collection_select

2010-01-28 Thread Steve Castaneda
Actually - nevermind. I thought it fixed the issue but turns out it's still not working right. I was still using the collection_select wrong, I believe - so at least that was fixed. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Googl

[Rails] Re: collection_select

2010-01-28 Thread Steve Castaneda
Fixed it. Turns out I was using collection_select wrong. This works perfectly: <%= f.collection_select :items, :color_id, @colors, :id, :name, {:include_blank => false, :prompt => 'What color?'} %> -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr

Re: [Rails] Re: Super noob needs help.

2010-01-28 Thread Ethan Gunderson
Are you inside of your project directory when running that command? On Thu, Jan 28, 2010 at 5:55 PM, Afg Afg wrote: > Ethan Gunderson wrote: > > Scaffolding was pulled out into a plugin in Rails 2.0 > > In order to follow that tutorial, you'll need to install it: > > > > script/plugin install sc

[Rails] Re: Super noob needs help.

2010-01-28 Thread Marnen Laibow-Koser
Sean Six wrote: > Is the tutorial telling you to put that code in the AdminController? It > is my guess that the code is based on a plugin or gem. Have you > included all the proper plugins and gems? Scaffold (in the controller) used to be part of Rails. It was removed in 2.0. The original

[Rails] Re: Super noob needs help.

2010-01-28 Thread Afg Afg
Ethan Gunderson wrote: > Scaffolding was pulled out into a plugin in Rails 2.0 > In order to follow that tutorial, you'll need to install it: > > script/plugin install scaffolding > > However, that tutorial seems pretty out of date. You might want to > find a newer one. > > -Ethan It says "ruby

[Rails] Re: Super noob needs help.

2010-01-28 Thread Afg Afg
Sean Six wrote: > Is the tutorial telling you to put that code in the AdminController? It > is my guess that the code is based on a plugin or gem. Have you > included all the proper plugins and gems? Yeah i installed --independencies still it wont work. -- Posted via http://www.ruby-forum.co

[Rails] Re: attr_accessible question

2010-01-28 Thread Marnen Laibow-Koser
James Byrne wrote: > Can one vary which attributes are available for mass assignment ? In > other words, if I had this statement in a model > > attr_accessible :a, :b:, :c > > is there some simple way to later add :d Model.attr_accessible :d > or remove :c? I'm not sure. Best, -- Marnen La

[Rails] Re: Re: Best Practices; Deploying Updates

2010-01-28 Thread Marnen Laibow-Koser
Niels Meersschaert wrote: > I know of capistrano's web:disable, but not an automatic switch if db > connection can't be made. Any link for how to set that up? No, I was thinking of web:disable. Sorry. > > Niels Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted v

Re: [Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread Niels Meersschaert
I know of capistrano's web:disable, but not an automatic switch if db connection can't be made. Any link for how to set that up? Niels On Jan 28, 2010, at 6:09 PM, Marnen Laibow-Koser wrote: > Simone R. wrote: > [...] >> >> >> Another nice-to-have is a minimal static html website to use if t

[Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread Marnen Laibow-Koser
Simone R. wrote: [...] > > > Another nice-to-have is a minimal static html website to use if the > database connection is not working (if the connection fail just redirect > to the static pages) FWIW, Capistrano can do this for you. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@ma

[Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread Simone R.
suryava wrote: > Regardless of the technology, this is what I would do: > > Post maintenance notices on the site upfront. This way the customers > know what to expect and will not be disappointed if they try accessing > the site, while you are updating it, and if they encounter errors. > > Commun

[Rails] Re: RoR hosting help?

2010-01-28 Thread Marnen Laibow-Koser
Steve Klabnik wrote: > I use both Heroku and Rackspace with my hosting. I've heard great things > about Slicehost and Linode as well. Slicehost is excellent. So is Heroku. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You rec

[Rails] Re: files are missing in rails app

2010-01-28 Thread Matt Jones
On Jan 28, 12:31 am, Geetha Sg wrote: > I've built the slackware packages of rails. > > rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8 > > RUBYLIB : > /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ruby/site_ruby/1 > .8/i686-linux/ > > I could created the rails application, b

[Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread suryava
Regardless of the technology, this is what I would do: Post maintenance notices on the site upfront. This way the customers know what to expect and will not be disappointed if they try accessing the site, while you are updating it, and if they encounter errors. Communicating and talking to the cu

[Rails] Re: exception_notification error: custom_require.rb:31:in `gem_original_re quire': no such file to load -- action_dispatch (MissingSourceFile)

2010-01-28 Thread Matt Jones
That repo has been updated for Rails 3, so it's going to fail badly on older versions. You'll probably want to grab only up to this commit: http://github.com/rails/exception_notification/commit/e8b603e523c14f145da7b3a1729f5cc06eba2dd1 Or you may want to look into another exception notifier, like

[Rails] Re: rails app for transfering/managing files/data

2010-01-28 Thread Matt Jones
On Jan 27, 9:11 am, Christoph Jasinski wrote: > Hi, > does anyone knows an application (hopefully on rails) which deals with file > transfer and management. I mean in the sense of an FTP. > My problems are that the client has only access to HTTP (port 80) and all > the tools (like DMS, etc.) out

[Rails] attr_accessible question

2010-01-28 Thread byrnejb
Can one vary which attributes are available for mass assignment ? In other words, if I had this statement in a model attr_accessible :a, :b:, :c is there some simple way to later add :d or remove :c? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: How do I properly create a menu with optgroup labels?

2010-01-28 Thread Jakob Skov-pedersen
Harpal Gujral wrote: > This post was really helpful in understanding the problem but how do we > pass in the selected key if we're dealing with multiple nested > attributes: > > name="invoice[invoice_line_items_attributes][0][item]" ...> > > name="invoice[invoice_line_items_attributes][1][ite

[Rails] Re: fields_for object methods - no you see them, now you don't

2010-01-28 Thread byrnejb
On Jan 28, 12:53 pm, Colin Law wrote: > On 28 January 2010 17:51, byrnejb wrote: > > > > > On Jan 28, 12:47 pm, byrnejb wrote: > > >>     And we follow the new user roles > >> link                                   # features/app/models/ > >> clearances/step_definitions/clearance_steps.rb:14 >

Re: [Rails] Re: What is the purpose of :conditions on a belongs_to asso

2010-01-28 Thread Chris Drappier
read the documentation on this. it explains it pretty thoroughly. On Thu, Jan 28, 2010 at 3:40 PM, Dave Sims wrote: > Upon further inspection I do see that the condition will restrict the * > retrieval* of items (and even then only after they are reloaded), but not > the persistence. I can assig

[Rails] Re: Best Practices; Deploying Updates

2010-01-28 Thread Frederick Cheung
On Jan 28, 7:52 pm, Dan Paul wrote: > > I am running nginx and thin, and I deploy with just a simple bash > script.  The only thing I was thinking of doing is to have multiple > instances of the app running and shut down each instance one at a > time, would that work? It can if your load balancer

Re: [Rails] Re: What is the purpose of :conditions on a belongs_to asso

2010-01-28 Thread Dave Sims
Upon further inspection I do see that the condition will restrict the * retrieval* of items (and even then only after they are reloaded), but not the persistence. I can assign an invalid object (invalid according to the condition) and that reference is persisted to the database upon save. The inval

Re: [Rails] Best Practices; Deploying Updates

2010-01-28 Thread Steve Klabnik
You may also want to look into Unicorn, which can give you no-downtime deploys. -- 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 e

Re: [Rails] RoR hosting help?

2010-01-28 Thread Steve Klabnik
I use both Heroku and Rackspace with my hosting. I've heard great things about Slicehost and Linode as well. -- 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 unsubs

Re: [Rails] RoR hosting help?

2010-01-28 Thread Philip Hallstrom
On Jan 28, 2010, at 12:15 PM, Mike wrote: Hi, I am looking for suggestions for hosting for a site we're developing in RoR (working with developer): The site allows photographers to upload galleries, so we want to make sure we have proper memory and bandwidth. Traffic will be pretty light at f

Re: [Rails] Best Practices; Deploying Updates

2010-01-28 Thread Philip Hallstrom
On Jan 28, 2010, at 11:52 AM, Dan Paul wrote: Hello, So I am a running a few shopping carts using spree (open source rails cart) and some of my clients site traffic is starting to rise. Normally I do deploy updates late at night but some times I have to deploy the asap, while customers are sti

[Rails] Best Practices; Deploying Updates

2010-01-28 Thread Dan Paul
Hello, So I am a running a few shopping carts using spree (open source rails cart) and some of my clients site traffic is starting to rise. Normally I do deploy updates late at night but some times I have to deploy the asap, while customers are still on the site in the process of ordering. Obviou

[Rails] RoR hosting help?

2010-01-28 Thread Mike
Hi, I am looking for suggestions for hosting for a site we're developing in RoR (working with developer): The site allows photographers to upload galleries, so we want to make sure we have proper memory and bandwidth. Traffic will be pretty light at first (visitors can search through these galler

[Rails] collection_select

2010-01-28 Thread Steve Castaneda
I'm rendering my form in a partial, as below: ... <%= f.collection_select :color_id, @colors, :id, :name, {:include_blank => false, :prompt => 'What color?'} %> ... Now, I'm rendering this partial in both the new and edit methods of my controller. Everything works great, except for one caveat.

Re: [Rails] Re: Re: Re: Re: Re: Re: testing errors

2010-01-28 Thread Colin Law
On 28 January 2010 20:20, Vishwa Rao wrote: > Colin Law wrote: >> On 28 January 2010 17:07, Vishwa Rao wrote: >>> Colin Law wrote: > >> >> I prefer a dual boot personally but it is a matter of preference. >> Many install ubuntu then run windows in VMWare or VirtualBox. > Going to check my pc If I

[Rails] link_to_function error

2010-01-28 Thread Me
I have a link_to_function on one page to go to this edit screen with this link_to_function. <%= link_to_function 'cancel' do |page| page[:"work_show_#{work.id}"].hide end %> When I click on the edit button it says, missing ) after argument list http://localhost:3000/ Line 2 If i take out page

[Rails] Generating one page with multiple controllers

2010-01-28 Thread Grzegorz Lysko
Hi, So I have an application in rails. The purpose of the application is to display test results written to the database. Each test consists of several defined operations. Each operation can have multiple sub operations (witch results in a tree like structure). Some of the defined operations have

[Rails] Re: Rails 3 and destroying models

2010-01-28 Thread Steve Klabnik
Continuing to play around with it, apparently the javascript tags aren't included in the scaffolding. When I include them all, the confirmation dialog comes up, but still makes a GET request. Maybe that just hasn't been implemented yet. Hm. On Thu, Jan 28, 2010 at 7:21 PM, Steve Klabnik wrote: >

[Rails] Re: Re: Re: Re: Re: Re: testing errors

2010-01-28 Thread Vishwa Rao
Colin Law wrote: > On 28 January 2010 17:07, Vishwa Rao wrote: >> Colin Law wrote: > > I prefer a dual boot personally but it is a matter of preference. > Many install ubuntu then run windows in VMWare or VirtualBox. Going to check my pc If I can install second drive where I can put vmware and

Re: [Rails] state_machine prevents ActiveRecord from being persisted

2010-01-28 Thread Marcelo de Moraes Serpa
Hi Joel, thanks for the reply. The system is working well. My problem is with the state_machine gem. If the payment fails, I can't really get it saved without doing the hack I mentioned, becase the state_machine implementation rollback any db transaction when you return false from an event, howeve

[Rails] Re: What is the purpose of :conditions on a belongs_to asso

2010-01-28 Thread Robert Walker
Dave Sims wrote: > But the output shows no WHERE clause on the select, and in any case I > would > expect that conditions like this on a belongs_to would prevent > persisting > that relationship to begin with, on the INSERT not the SELECT. This > option > seems to have no effect on a belongs_to

[Rails] form_for helper?

2010-01-28 Thread Me
How would make this a helper? I would like to send in some parameters as a hidden field dynamically. <% form_for :file, :url => file_upload_path(:format => 'js'), :html => { :multipart => true, :target => 'upload_file', :id => 'fileupload' } do %> File:  <%= file_field_tag :upload

[Rails] Rails 3 and destroying models

2010-01-28 Thread Steve Klabnik
Has anyone been playing around with the Rails 3 code? I'm having an issue with destroying models. I started an app using Yehuda's "Spinning up a new Rails app" example. Worked great. "script/generate scaffold Post title:string body:text" Awesome. "rake db:migrate". Great. Everything works... except

[Rails] many to many relationship with restful routes

2010-01-28 Thread Maulin
Here is the scenario, Articles have many Comments Users can write many Comments for many Articles The comments table contains both user_id article_id as foreign keys My models are set up like so class User < ActiveRecord::Base has_many :comments has_many :articles, :through => :comments c

[Rails] Re: dynamic drop downs for product search

2010-01-28 Thread E. Litwin
> Any suggestions or good read ups ? One place to start is with the Railscast on dynamic select menus: http://railscasts.com/episodes/88-dynamic-select-menus It is a bit old, (I believe it uses Prototype) but it is a good starting point. Eric -- You received this message because you are subscri

[Rails] What is the purpose of :conditions on a belongs_to association?

2010-01-28 Thread Dave Sims
Say I have the following association with an attached condition: belongs_to :admin_user, :class_name => 'User', :foreign_key => :admin_user_id, :conditions=> 'users.admin=TRUE' # or any variation with hash or array, {:admin => true}, etc. The API states

[Rails] Re: noob question: create a link to google a parameter

2010-01-28 Thread rpuspana
i don't know where to begin in thanking you for all the time and skill that you put into my problem, and for explaining the problem step by step, just like someone should for a noob. I;ll keep in mind every tip u gave me and try tsome day to undestand the thing with the classes and the helpers for

[Rails] Re: Need help -Video upload progress bar

2010-01-28 Thread Simone R.
shyam mohan wrote: > Hi all > > I want to show progress of video file upload. > I google about this but can't find easier way to do this.. > if some one know it, > please tell me process or link. > > Thanks > > Regards, > Shyam > +91-971-618-9650 > sh...@crypsis.net If you can check the siz

Re: [Rails] Re: fields_for object methods - no you see them, now you don't

2010-01-28 Thread Colin Law
On 28 January 2010 17:51, byrnejb wrote: > > > On Jan 28, 12:47 pm, byrnejb wrote: > >>     And we follow the new user roles >> link                                   # features/app/models/ >> clearances/step_definitions/clearance_steps.rb:14 >>       undefined method `newrecord?' for # >> (Actio

Re: [Rails] fields_for object methods - no you see them, now you don't

2010-01-28 Thread Philip Hallstrom
On Jan 28, 2010, at 9:47 AM, byrnejb wrote: I have this: <%-f.fields_for(:clearances, :index => []) do |ff| puts ff.object.methods.sort if ff.object.newrecord? ff_id = "new_" else ff_id = "show_"

[Rails] Re: fields_for object methods - no you see them, now you don't

2010-01-28 Thread byrnejb
On Jan 28, 12:47 pm, byrnejb wrote: >     And we follow the new user roles > link                                   # features/app/models/ > clearances/step_definitions/clearance_steps.rb:14 >       undefined method `newrecord?' for # > (ActionView::TemplateError) > > So, where does the missing

[Rails] fields_for object methods - no you see them, now you don't

2010-01-28 Thread byrnejb
I have this: <%-f.fields_for(:clearances, :index => []) do |ff| puts ff.object.methods.sort if ff.object.newrecord? ff_id = "new_" else ff_id = "show_" end -%> Which gives me

Re: [Rails] Re: Re: Re: Re: Re: testing errors

2010-01-28 Thread Colin Law
On 28 January 2010 17:07, Vishwa Rao wrote: > Colin Law wrote: >   Have a look at the free downloadable guide at >> http://www.ubuntupocketguide.com/index_main.html if you are >> interested.  Of course you would have to put your rails stuff on hold >> for a while in order to get the hang of Ubuntu

[Rails] Re: Creating executable rails 3 generators

2010-01-28 Thread Kristian
It almost works... except I run into the following issue module Nifty module Generators class ScaffoldGenerator < Base ... def initialize(*args, &block) super args_for_c_m.each do |arg| if arg == '!' options[:invert] = true<< line 53 ...

Re: [Rails] acts_as_nested_set, delete(node) method?

2010-01-28 Thread Philip Hallstrom
Hello, I'm using acts_as_nested_set, and I can create root-nodes and add childs to it. No problem. But what can I do, to delete a certain node and all of it's children? And of course in a way that it's consistent, this means that the lft/rgt structure is still consistent. I'm using awesome nest

[Rails] Re: Re: Re: Re: Re: testing errors

2010-01-28 Thread Vishwa Rao
Colin Law wrote: Have a look at the free downloadable guide at > http://www.ubuntupocketguide.com/index_main.html if you are > interested. Of course you would have to put your rails stuff on hold > for a while in order to get the hang of Ubuntu. I am going to checkout ubuntu linux. it should b

[Rails] Creating executable rails 3 generators

2010-01-28 Thread Kristian
For inspiration I have been looking into rails 3.0pre I found this in the file *bin/rails* -- ... require 'rails/generators' require 'generators/rails/app/app_generator' Rails::Generators::AppGenerator.start -- Aha! Require the app generator and then start it :) then in *framework.task* -- ...

[Rails] Re: Error: uninitialized constant MysqlCompat::MysqlRes

2010-01-28 Thread Nikhil Gupte
For all you folks who couldn't get this to work on Snow Leopard inspite of trying the ridiculously simple solution(s) mentioned above, Try this: Re compile ruby. Then do sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config This will ensur

Re: [Rails] Playing a sound with flash

2010-01-28 Thread Peter De Berdt
On 28 Jan 2010, at 08:54, Pieter Hugo wrote: I am writing a chatlike application with Ruby on Rails. I have come across the problem that I need to subtly alert a user that a comment has been made in the case where the user has minimised the browser, or it is not in focus. I am using Jugge

[Rails] Re: validates preference of at least one param

2010-01-28 Thread Marnen Laibow-Koser
Sean Six wrote: > I have a simple RESTful search scaffold that finds data in a separate > model and controller. > > [code] > New search > > <% form_for(@search) do |f| %> > <%= f.error_messages %> > > > <%= f.label :category_id %> > <%= f.collection_select :category_id, Category.all

Re: [Rails] [NEW TO RoR] - Error on Rake DB:Create

2010-01-28 Thread kannav rajeev
once remove the line socket : /var/run/mysqld/mysqld.sock i am not sure but it may works... On Thu, Jan 28, 2010 at 7:20 PM, Nelson André wrote: > Hello there, > > this is my first post and I'm new to Ruby on Rails. > > I'm getting the following error when I do "rake db:create" : > > (in /home/ne

Re: [Rails] Rails gem download problem

2010-01-28 Thread kannav rajeev
try to download from gemcutter On Thu, Jan 28, 2010 at 6:43 PM, senling wrote: > Hi, > I'm setting the rails environment in my windows machine. > > While downloading the gems from https://rubyforge.org/, it seems very > slow downloading > i'm trying to download rubygem from this url : > http

[Rails] [NEW TO RoR] - Error on Rake DB:Create

2010-01-28 Thread Nelson André
Hello there, this is my first post and I'm new to Ruby on Rails. I'm getting the following error when I do "rake db:create" : (in /home/nelson/rubyapps/blog) rake aborted! syntax error on line 24, col 1: ` socket : /var/run/mysqld/ mysqld.sock' Now the background: I installed Ubuntu Karmic Koa

[Rails] Re: Installing calendar_date_select

2010-01-28 Thread Hemant Bhargava
Thanks guyz, Resolved it .. :) Cheers .. Hemant Bhargava wrote: > Hello Champs, > > I am not able to install this. I mean i had ran the command "gem install > calendar_date_select" And now the status is showing me:- > --- > Successfully installed calendar_date_select-1.15 > 1 gem installed > In

Re: [Rails] rails files are missing

2010-01-28 Thread Franz Strebel
On Thu, Jan 28, 2010 at 1:03 PM, sg wrote: > I've built the slackware packages of rails. > > rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8 > > RUBYLIB : /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ > ruby/site_ruby/1.8/i686-linux/ > > I could created the rails application, b

[Rails] rails files are missing

2010-01-28 Thread sg
I've built the slackware packages of rails. rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8 RUBYLIB : /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ ruby/site_ruby/1.8/i686-linux/ I could created the rails application, but files are missing. Config - boot.rb, database.yml

[Rails] Rails gem download problem

2010-01-28 Thread senling
Hi, I'm setting the rails environment in my windows machine. While downloading the gems from https://rubyforge.org/, it seems very slow downloading i'm trying to download rubygem from this url : http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-update-1.3.5.gem. this file size is 279

[Rails] Installing calendar_date_select

2010-01-28 Thread Hemant Bhargava
Hello Champs, I am not able to install this. I mean i had ran the command "gem install calendar_date_select" And now the status is showing me:- --- Successfully installed calendar_date_select-1.15 1 gem installed Installing ri documentation for calendar_date_select-1.15... Installing RDoc document

[Rails] Need help -Video upload progress bar

2010-01-28 Thread shyam mohan
Hi all I want to show progress of video file upload. I google about this but can't find easier way to do this.. if some one know it, please tell me process or link. Thanks Regards, Shyam +91-971-618-9650 sh...@crypsis.net -- You received this message because you are subscribed to the Google

[Rails] Which is the best forums software for Rails?

2010-01-28 Thread John Smith
I would like to find a forums plugin (or not plugin if it can't be possible) compatible with Rails 2.3.5. Which is the best? -- 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,

[Rails] dynamic drop downs for product search

2010-01-28 Thread brianp
Hey Everyone, I'm about to embark on having a search function for the products on my app via dynamic dropdowns. A dropdown for make would only leave AVAILABLE models of that make. selecting year would only leave available makes from that year etc etc. Any suggestions or good read ups ? -- You r

Re: [Rails] Re: Re: Re: Re: testing errors

2010-01-28 Thread Colin Law
On 27 January 2010 21:51, Vishwa Rao wrote: > Colin Law wrote: > >>> I cannot find out on Google about error on 'find_record_in_template'. >>> I don't know how to fix this - is this also deprecated or is it my >>> syntax error? >> >> http://dev.rubyonrails.org/ticket/7385 suggests this has also go

[Rails] Re: authlogic

2010-01-28 Thread Tom Mac
Hi I could not solve the problem yet.Please help Thanks 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 unsubsc

[Rails] acts_as_nested_set, delete(node) method?

2010-01-28 Thread sushi 2k
Hello, I'm using acts_as_nested_set, and I can create root-nodes and add childs to it. No problem. But what can I do, to delete a certain node and all of it's children? And of course in a way that it's consistent, this means that the lft/rgt structure is still consistent. I'm using awesome nested s

[Rails] Re: Super noob needs help.

2010-01-28 Thread Ethan Gunderson
Scaffolding was pulled out into a plugin in Rails 2.0 In order to follow that tutorial, you'll need to install it: script/plugin install scaffolding However, that tutorial seems pretty out of date. You might want to find a newer one. -Ethan On Jan 27, 10:09 pm, Afg Afg wrote: > I am following

[Rails] [JOBS] Seeking bright SW Engineer for funded startup in San Mateo - multiple languages including Ruby

2010-01-28 Thread Leah Blalock
This funded startup is looking for a senior level software engineer to work on building large-scale web apps and infrastructure for other developers to use. You'll use your mastery of multiple languages with a strong focus in Ruby. Exposure to cloud based infrastructure and large-scale web projec