[Rails] Re: Rails3 Jquery link_to

2010-06-28 Thread tspore
Ok I think I figured out a simple version - $('#content').load('/clients #index'); Right now I have it in my index.js.erb but I need to now figure out how to load it into my controller, so I can reduce files. On Jun 28, 6:11 pm, tspore wrote: > Ok I think I'm 1/2 their - I got something to load o

Re: [Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread dieinzige
lol use nginx with passenger but in really of rails development, when web server can handler more than 5r rps, its not slow point. Best Regards, dieinzige On 28 Jun, 2010,at 10:03 PM, Joe Developer wrote: On Tue, Jun 29, 2010 at 3:43 AM, dieinzige wrote: hi unciron is non faster then

[Rails] Re: deploy: First Rails App to shared server

2010-06-28 Thread Ali Imran
I follow all the steps and got this error The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instructions in the error message. Error message: Missing the Rails 2.2.3 gem. P

[Rails] capybara, webdriver not launching on xvfb display

2010-06-28 Thread Mark Gandolfo
Hey Guys, I'm trying to run cucumber (capybara) in a xvfb, I've set it up correctly, and can manually launch firefox using "DISPLAY=:99 firefox". I'm 100% this works, because I've set up a vncserver bound to that xvfb, and I can see firefox comes up.. But if I DISPLAY=:99 cucumber, firefox doesn'

[Rails] Rails Magazine issue #6, 2010

2010-06-28 Thread Olimpiu Metiu
A new edition of Rails Magazine is now available, both in print and as a free pdf (36 pages, 2.8 MB) at http://railsmagazine.com/issues/6. In this number: - "Beautifying Your Markup With Haml and Sass" by Ethan Gunderson - "Scaling Rails" by Gonçalo Silva - "Interview with Sarah Allen" by Rupak Ga

Re: [Rails] Re: Adding a new project to git

2010-06-28 Thread Jason Michael
Yeah, but your note is like: I'm building a ruby on rails application, and while I'm writing the code I'd like to be eating a nice batch of chocolate chip cookies. Does anyone have a good recipe for chocolate chip cookies? On Mon, Jun 28, 2010 at 9:41 PM, RailsFan Radha wrote: > Jason Michael wr

[Rails] Re: Adding a new project to git

2010-06-28 Thread RailsFan Radha
Jason Michael wrote: > there are git irc channels and mailing lists and books and web sites > and tutorials. This is a ruby on rails resource. my new app is in ruby on rails. -thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Googl

Re: [Rails] Adding a new project to git

2010-06-28 Thread Jason Michael
there are git irc channels and mailing lists and books and web sites and tutorials. This is a ruby on rails resource. On Mon, Jun 28, 2010 at 9:23 PM, RailsFan Radha wrote: > > I would like to put this in some sort of version control for source > control as well as for easy deployment when i am

Re: [Rails] Adding a new project to git

2010-06-28 Thread Bob Nadler
Hi, Git is probably your best choice, it's what most people are using. Github[1] has some great help pages for getting started. There's also an online version of the Pro Git[2] book which is really good. --Bob [1] http://help.github.com/ [2] http://progit.org/ On Mon, Jun 28, 2010 at 10:23 PM,

[Rails] "show" action - restrict manual url change from user to view

2010-06-28 Thread RailsFan Radha
This is "show" action in my "category controller". # Show --- def show # @category=Category.find(params[:category_id]) @category=Category.find(params[:category_id]) end "show" action - restrict manual url change from user to view the inactive records. " Active/inactive are se

[Rails] Re: deploy: First Rails App to shared server

2010-06-28 Thread Victor S
If you go to google. you can type: "site5 rails deploy" and the first hit you get is the answer... Did you try to do what that post sais? Also try to be perceptive of any minute differences in your environment or how you might like to make things work for you better... you don't have or if the inf

[Rails] Adding a new project to git

2010-06-28 Thread RailsFan Radha
I would like to put this in some sort of version control for source control as well as for easy deployment when i am ready for hosting. So, please let me know, which is the post popular one git or sub version? most probably, i will be hosting in dreamhost. If it is git, then what are the steps t

[Rails] Re: list using a sql statement

2010-06-28 Thread RailsFan Radha
Does this mean, that always create a method and call that in the controller? Even for find(:all) ? Is this the best practice? - thanks, radha -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: list using a sql statement

2010-06-28 Thread RailsFan Radha
RailsFan Radha wrote: > > I have a table called category and i want to show only the records where > "status = A" in my list.erb > > currently, my list.erb shows all records from category table. > but, i would like to show only the records where status = 'A' > > for example: > select * frm categ

[Rails] list using a sql statement

2010-06-28 Thread RailsFan Radha
I have a table called category and i want to show only the records where "status = A" in my list.erb currently, my list.erb shows all records from category table. but, i would like to show only the records where status = 'A' for example: select * frm category where status = 'A' the idea behind

[Rails] Re: Rails3 Jquery link_to

2010-06-28 Thread tspore
Ok I think I'm 1/2 their - I got something to load on the rjs template- $("#content").html("fish"); Which renders html inside the content tag... But it just will render a plain tag for fish - not html code e.g. fish But I think ideally it would render the same index.html.erb file so I wouldn't h

[Rails] Re: How to populate a table with id of selected item from another table

2010-06-28 Thread RichardOnRails
Hi Hassan, Thanks for your continued consideration of my problem. I hope some of the following is helpful,, though it seems like way to much information. > ? I'm looking at (unframed) > > > with this 'sample usage': > >

Re: [Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread Joe Developer
On Tue, Jun 29, 2010 at 5:03 AM, Joe Developer wrote: > > > On Tue, Jun 29, 2010 at 3:43 AM, dieinzige wrote: > >> hi >> unciron is non faster then mongrel or thins or passenger >> try analyze your applications, buy log, or tools such as new relic >> after this >> or refactor your app or go to a

Re: [Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread Joe Developer
On Tue, Jun 29, 2010 at 3:43 AM, dieinzige wrote: > hi > unciron is non faster then mongrel or thins or passenger > try analyze your applications, buy log, or tools such as new relic > after this > or refactor your app or go to another server (hetzner.de or > rakspacecloud.com) > > Best Regards,

[Rails] Rails3 Jquery link_to

2010-06-28 Thread tspore
I know that I'm missing something very simple but I setup my application to use for the links a remote=> true call. In the call it finds the js.erb file, but doesn't render into the browser the content. LOG: Started GET "/" for 127.0.0.1 at 2010-06-28 14:26:22 -0700 Processing by HomeController

Re: [Rails] Send_data

2010-06-28 Thread Michael Pavling
On 28 June 2010 21:45, dieinzige wrote: > what the hell are u doing, if u have file, u can simplify get link to user, What if the OP needs users to be logged in to view files? Or complete some other approval process. Not much sense having them accessible from the public directory in that instance

[Rails] Re: Testing image_tag :src (asset id issue)

2010-06-28 Thread Marnen Laibow-Koser
DK wrote: > This seems like it should be real easy to do but I have not found any > documentation: > > I have an image tag in a page: > > <%= image_tag "arrow_green.gif", :alt => "image did not load" %> > > Slightly off your question, but...that's a terrible abuse of the alt attribute. It sh

Re: [Rails] Send_data

2010-06-28 Thread dieinzige
what the hell are u doing, if u have file, u can simplify get link to user, for it it will be more faster than use rails, and more native for user Best Regards, dieinzige On 28 Jun, 2010,at 03:56 PM, Mamadou Touré wrote: I want to display a pdf on my browser bu using send_data(File.read(FIL

Re: [Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread dieinzige
hi unciron is non faster then mongrel or thins or passenger try analyze your applications, buy log,  or tools such as new relic after this or refactor your app or go to another server (hetzner.de or rakspacecloud.com) Best Regards, dieinzige On 28 Jun, 2010,at 03:32 PM, Joe Developer wrote:

Re: [Rails] Re: How to populate a table with id of selected item from another table

2010-06-28 Thread Hassan Schroeder
On Mon, Jun 28, 2010 at 1:06 PM, RichardOnRails wrote: > undefined local variable or method `nickname' for # 0x442c8f0> > Extracted source (around line #10): > 10:     <%=  f.collection_select(:vendor, :vendor_id, @vendors, :id, > nickname) -%> > 3. I tried a colon in front of "nickname" in th

Re: [Rails] Testing image_tag :src (asset id issue)

2010-06-28 Thread Philip Hallstrom
On Jun 28, 2010, at 1:37 PM, DK wrote: > This seems like it should be real easy to do but I have not found any > documentation: > > I have an image tag in a page: > > <%= image_tag "arrow_green.gif", :alt => "image did not load" %> > > And a functional test I would like to write: > > assert

[Rails] Testing image_tag :src (asset id issue)

2010-06-28 Thread DK
This seems like it should be real easy to do but I have not found any documentation: I have an image tag in a page: <%= image_tag "arrow_green.gif", :alt => "image did not load" %> And a functional test I would like to write: assert_tag :tag => "img", :attributes => { :src => "arrow_green.gif"

[Rails] Re: deploy: First Rails App to shared server

2010-06-28 Thread Ali Imran
thanks for the reply. I read the completely link you send me. and i also looked at the site5.com forum and still looking at it but did not find any help to deploy the application . I tried all the ways i know... On Jun 27, 11:33 pm, Victor S wrote: > I deployed on Site5, so it's possible :) >

[Rails] Re: Re: Time-dependent values/constants in Models: An issue or not?

2010-06-28 Thread Tom Ha
Got it - thanks a bunch ! -- 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 this group, send email to ru

[Rails] Is there any way to have observe_field react to the current value of a field also?

2010-06-28 Thread Bob Smith
I have a view, seen below, that shows a list of churches if the zip code isn't 01540 or 01537. This part works perfectly. The problem is that this is the page is to edit an existing record also, so observe_field needs to see that the zip code currently doesn't match, so the church list needs to be

[Rails] Re: How to populate a table with id of selected item from another table

2010-06-28 Thread RichardOnRails
Hi Hissan, Thanks for your response. > Wow. You've been doing Rails development without using the > API docs? Kinda like playing tennis in the dark. in handcuffs. :-) Well, I wasn't completely without resources, e.g. the links (now expanded, thanks to you) I maintain under one Firefox tab: htt

Re: [Rails] Re: Redirecting old URLs to new permalinked URLs

2010-06-28 Thread Hassan Schroeder
On Mon, Jun 28, 2010 at 12:43 PM, wrote: > So I guess ill want something like Why guess? That's what docs are for -- There's this thing called 'Der Google', see... :-) -- Hassan Schroeder hassan.sch

[Rails] Re: deploy: First Rails App to shared server

2010-06-28 Thread Ali Imran
My hosting does not support mongrel. they jus told me to use Passenger and i have no idea what steps i need to take... Thanks On Jun 27, 4:36 am, murali dhararao wrote: > Hi, > > Run the mongrel server in the port which you have configured earlier, either > 8000,8001,8002 or 3000,3001,3002, bas

[Rails] Re: deploy: First Rails App to shared server

2010-06-28 Thread Ali Imran
Which settings i need to change On Jun 27, 7:57 am, Mark Kremer wrote: > If they're standard shared host hosting accounts you won't be able to > change the Apache configuration as you desire, you'll need to ask the > hosting company to do it for you. -- You received this message because you a

[Rails] Re: Redirecting old URLs to new permalinked URLs

2010-06-28 Thread youtube
Hmm. Ok. Ill look into it. So I guess ill want something like this: r301 %r{/tutorials/(\w+)}, '/ $1' But instead of using the first unknown word variable (as "/$1" would refer to (as far as I know)); I want it to go to my permalinked URL (http://127.0.0.1:3000/categories/1-css/tutorials/12-test9

Re: [Rails] Re: Time-dependent values/constants in Models: An issue or not?

2010-06-28 Thread Philip Hallstrom
On Jun 28, 2010, at 11:42 AM, Tom Ha wrote: > Thanks a lot for your explanation (I believe a lot of folks are not > necessarily aware of this "detail"...). > > One question back, though: > > Is the issue rather... > > a) with Rails' "Time.now" VS MySQL's "UTC_TIMESTAMP()" (where the former >

Re: [Rails] Rails command line

2010-06-28 Thread Hassan Schroeder
On Mon, Jun 28, 2010 at 12:05 PM, Brandon Hilkert wrote: > I'm putting together an application and some of the code will be needed > to run some cron jobs. Is this easy with rails? yes -- see {RAILS_ROOT}/script/runner -- Hassan Schroeder hassan.schroe...@gmail.com twit

[Rails] Deploy: Steps to use Passenger

2010-06-28 Thread Ali Imran
My application name is "demo"... I developed it on Ubuntu. I have installed Passenger and all settings are fine. Please help me to which files need to modified and how to FTP my project. I am using site5.com basic hosting. -- You received this message because you are subscribed to the Google Gr

[Rails] Rails command line

2010-06-28 Thread Brandon Hilkert
I'm putting together an application and some of the code will be needed to run some cron jobs. Is this easy with rails? -- 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

Re: [Rails] Re: Redirecting old URLs to new permalinked URLs

2010-06-28 Thread Hassan Schroeder
On Mon, Jun 28, 2010 at 11:42 AM, wrote: > I program in many languages, and that does not stand out to me. > I know C++, Java, CSS, HTML, Lua, and Visual Basic; and that doesn't > stand out to me. I assume that this is from a whole different category > of programming/scripting languages; of which

[Rails] Re: Redirecting old URLs to new permalinked URLs

2010-06-28 Thread Marnen Laibow-Koser
unknown wrote: > I program in many languages, and that does not stand out to me. > I know C++, Java, CSS, HTML, Lua, and Visual Basic; and that doesn't > stand out to me. CSS and HTML aren't programming languages.  C++ and Java don't have much regex support.  I don't know Lua or VB, so can't comm

[Rails] Re: Redirecting old URLs to new permalinked URLs

2010-06-28 Thread youtube
I program in many languages, and that does not stand out to me. I know C++, Java, CSS, HTML, Lua, and Visual Basic; and that doesn't stand out to me. I assume that this is from a whole different category of programming/scripting languages; of which I don't know. Could you please explain to me how

[Rails] Re: Time-dependent values/constants in Models: An issue or not?

2010-06-28 Thread Tom Ha
Thanks a lot for your explanation (I believe a lot of folks are not necessarily aware of this "detail"...). One question back, though: Is the issue rather... a) with Rails' "Time.now" VS MySQL's "UTC_TIMESTAMP()" (where the former would *never* return the "true now" when used *anywhere within

[Rails] Re: Best practice for removing leading and trailing whitespaces

2010-06-28 Thread Rakesh Arora
Some more information about my failure scenario: Code in my controller's create: XXX.find_or_create_by_yyy(params[:input]) Here is the spec code that is failing xxx = XXX.create!(:yyy => 'abc') #Send a post request to the controller with a resource that already exists #but include leading and

[Rails] has_one. Deleting orphan tuples

2010-06-28 Thread P. A.
Hi. How to delete orphan tuples after a new object has been created through has_one association? Here's an example: # a user model class User < ActiveRecord::Base   has_one :account end # an account model class Account < ActiveRecord::Base   belongs_to :user end # a users table id   = 1 name =

[Rails] Editing multiples rows in a single table

2010-06-28 Thread richardsugg
I have a table that contains user options, so the table looks like id username option_name option_value How do I create a single page that allows me to edit all the options? Would it be something like <% form_for :options, :url => { :action => "update_options" } do | form| %> <%= form.label :o

Re: [Rails] Re: Send_data

2010-06-28 Thread Peter De Berdt
On 28 Jun 2010, at 19:28, Mamadou Touré wrote: Peter De Berdt wrote: On 28 Jun 2010, at 17:56, Mamadou Touré wrote: I want to display a pdf on my browser bu using send_data(File.read(FILE_PATH + FILE_NAME), :type => 'application/pdf',:disposition => 'inline', :filename => FILE_NAME) But not

[Rails] Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??

2010-06-28 Thread Ram
Okay ... RESOLVED! :D I left the mysql installation as such in /usr/local . I had been running the ruby and rails shipped with leopard in /usr/ bin. Followed the hivelogic article (http://hivelogic.com/articles/ruby- rails-leopard) to roll my own installations in /usr/local/ and then ran "sudo gem

[Rails] Re: Installing MySQL gem on Mac OS X Leopard for Rails 2.3.5

2010-06-28 Thread Ram
Okay ... RESOLVED! :D I left the mysql installation as such in /usr/local . I had been running the ruby and rails shipped with leopard Followed the hivelogic article above to roll my own installations on / usr/loca/ and then ran "sudo gem install mysql -- --with-mysql-dir=/ usr/local/mysql" . Work

[Rails] Re: form_for won't generate the correct action path

2010-06-28 Thread richardsugg
Thanks, Bill. I checked out the documentation on REST and it makes much better sense now. On Jun 28, 10:15 am, bill walton wrote: > Hi Richard, > > On Mon, 2010-06-28 at 06:46 -0700, richardsugg wrote: > > I'm really baffled since this should be very textbook: > > > <% form_for :person, :url =>

Re: [Rails] Downtime notifier

2010-06-28 Thread Michael Pavling
On 28 June 2010 18:19, Peter De Berdt wrote: > And concerning the notification, it's all up to what you personally prefer > tbh. One way to go about it is create a Downtime model and with a start and > end time, put a before_filter in application_controller.rb that fetches all > those > Time.now,

[Rails] Re: Strange error when running rails 2.3 on ruby 1.9.1 on FreeBSD

2010-06-28 Thread Fernando Perez
dieinzige wrote: > people > please not use 1.9, with rails 2.3 > thanks Well, everybody is talking about Passenger being patched to be compatible with Ruby1.9, and about Rails 2.3 patches for Ruby1.9 compatibility, and etc. So it's a bit a pity to be hold back to Ruby 1.8.7 -- Posted via http:/

Re: [Rails] Downtime notifier

2010-06-28 Thread Hassan Schroeder
On Mon, Jun 28, 2010 at 9:55 AM, Michael Pavling wrote: > What methods do people use to notify users of upcoming downtime in an > application, We use comatose to manually post a very visible notice about any scheduled maintenance... > and for handling requests nicely while scheduled downtime > i

[Rails] Re: Send_data

2010-06-28 Thread Mamadou Touré
Peter De Berdt wrote: > On 28 Jun 2010, at 17:56, Mamadou Touré wrote: > >> I want to display a pdf on my browser bu using >> send_data(File.read(FILE_PATH + FILE_NAME), :type => >> 'application/pdf',:disposition => 'inline', :filename => FILE_NAME) >> >> But nothing happens. Do you know why ? >

[Rails] Re: Re: Re: Relationship problems

2010-06-28 Thread Neil Bye
Michael Pavling wrote: > On 28 June 2010 15:18, Neil Bye wrote: >> Problem is that it won't recognise the Story object. > > What Story object? In your controller code you don't have one. You use > a story key in the params hash, but you haven't populated anything > from the database. Is the email

Re: [Rails] Downtime notifier

2010-06-28 Thread Peter De Berdt
On 28 Jun 2010, at 19:03, Peter De Berdt wrote: What methods do people use to notify users of upcoming downtime in an application, and for handling requests nicely while scheduled downtime is occurring? My Google-fu is not yielding me anything useful- looking. Depends, the easiest way is t

[Rails] Re: How can I tell what actionmailer is actually doing?

2010-06-28 Thread anon_comp
On Jun 26, 11:30 am, Rod Paddock wrote: > I believe I have  my ActionMailer in environment.rb configured > properly and have setup the proper classes. I am not receiving the e- > mails I am sending. > My configuration and classes are below. > > What I would like to know is how can I log or determi

Re: [Rails] Downtime notifier

2010-06-28 Thread Peter De Berdt
On 28 Jun 2010, at 18:55, Michael Pavling wrote: What methods do people use to notify users of upcoming downtime in an application, and for handling requests nicely while scheduled downtime is occurring? My Google-fu is not yielding me anything useful-looking. Depends, the easiest way is to u

[Rails] Downtime notifier

2010-06-28 Thread Michael Pavling
What methods do people use to notify users of upcoming downtime in an application, and for handling requests nicely while scheduled downtime is occurring? My Google-fu is not yielding me anything useful-looking. -- You received this message because you are subscribed to the Google Groups "Ruby o

Re: [Rails] Re: Re: Relationship problems

2010-06-28 Thread Michael Pavling
On 28 June 2010 15:18, Neil Bye wrote: > Problem is that it won't recognise the Story object. What Story object? In your controller code you don't have one. You use a story key in the params hash, but you haven't populated anything from the database. Is the email address in the params hash too?!

Re: [Rails] Time-dependent values/constants in Models: An issue or not?

2010-06-28 Thread Philip Hallstrom
On Jun 26, 2010, at 6:00 AM, Tom Ha wrote: > Hi there, > > I remember reading in the comments of a Rails blog something along these > lines: > > "Since a Model is loaded only once in production development (at server > start), certain time-dependent 'constants' that you have placed in a > metho

Re: [Rails] Send_data

2010-06-28 Thread Peter De Berdt
On 28 Jun 2010, at 17:56, Mamadou Touré wrote: I want to display a pdf on my browser bu using send_data(File.read(FILE_PATH + FILE_NAME), :type => 'application/pdf',:disposition => 'inline', :filename => FILE_NAME) But nothing happens. Do you know why ? Serving it via AJAX or a normal reques

Re: [Rails] Re: How do you deploy RoR? Newb alert!

2010-06-28 Thread Bob Nadler
Hi, Yeah, stuff moves pretty quickly but a lot of what is in the book still applies. I bought it about a year ago and didn't think it was outdated. It will also give you a really good foundation and makes learning the newer choices easier to pick up. --Bob On Mon, Jun 28, 2010 at 11:29 AM, Jerem

[Rails] Send_data

2010-06-28 Thread Mamadou Touré
I want to display a pdf on my browser bu using send_data(File.read(FILE_PATH + FILE_NAME), :type => 'application/pdf',:disposition => 'inline', :filename => FILE_NAME) But nothing happens. Do you know why ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Re: testing and migrations

2010-06-28 Thread Lecky
yes it does On Jun 28, 5:44 am, anywho wrote: > I also don't use Test::Unit. I use Rspec, and I assumed, correctly it > would seem, that the behavior was the same. > > Rake db:test:clone just clones from the development, no? > > On Jun 27, 7:27 am, Marnen Laibow-Koser wrote: > > > Hassan Schroed

[Rails] Re: Best practice for removing leading and trailing whitespaces

2010-06-28 Thread Rakesh Arora
This pattern is not working for find_or_create_by_***: http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/ I am getting ConstraintException:column *** is not valid for the resources that are already in the database. I understand that this is because trimmed_field is using bef

Re: [Rails] Re: How do you deploy RoR? Newb alert!

2010-06-28 Thread Peter Hickman
At work we use capistrano. Our code comes out of mercurial by allowing the servers access to the mercurial repository. On my personal site I use capistrano and the code comes out of SVN by being tared up and unpacked at the destination. Capistrano is a sort of 'given' tool if you are a Rails deve

Re: [Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread Joe Developer
Try unicorn, it is dead easy; sudo gem install unicorn cd /yourRailsRoot unicorn_rails it will listen on 8080 by default. On Mon, Jun 28, 2010 at 8:39 PM, Lecky wrote: > Try to use some third party web service to host your app, like Heroku > or Amazon Web Service EC2. > > Cheers, > Lecky La

[Rails] Re: Re: Remove first part of path, if = a particular string?

2010-06-28 Thread Marnen Laibow-Koser
Max Williams wrote: > Hi Bill - thanks. That had occurred to me too, but I was hoping to not > have to go through and individually catch every possible route and > individually redirect each one. The problem with this as well is that > it lets people carry on using the staging urls, silently s

[Rails] Re: How do you deploy RoR? Newb alert!

2010-06-28 Thread Jeremy
Hey Bob, Thanks for the information, it's much appreciated. Quick question though.. I had thought about getting this book but I saw that it was written 2+ years ago (may 2008).. Do you think there is more up to date book out there that would cover this or do you think this book would still be suit

[Rails] JOBS: Rails developer, NYC

2010-06-28 Thread abel
Hi all, Looking for one Rails developer to join our team. We are working on a startup initiative and we have an initial iteration of the web app already deployed with over 200 uses and nearly 400 listings. We are hoping to find one person who is founder material and who is a true entrepreneur. In

[Rails] Re: Re: Remove first part of path, if = a particular string?

2010-06-28 Thread Max Williams
Hi Bill - thanks. That had occurred to me too, but I was hoping to not have to go through and individually catch every possible route and individually redirect each one. The problem with this as well is that it lets people carry on using the staging urls, silently sending them through to the

Re: [Rails] Re: Remove first part of path, if = a particular string?

2010-06-28 Thread Bill Walton
Hi Max, On Mon, Jun 28, 2010 at 7:18 AM, Max Williams wrote: > Bill Walton wrote: > >> >> Easily, with named routes. >> > > Thanks Bill - would you mind explaining your easy named routes solution? > :) Without knowing more about your Rails version and existing routes it's a bit tough to give you

[Rails] jquery ajax.submit() help

2010-06-28 Thread Piyush Choudhary
Hi all, I need some quick help in jquery. While using jquery ajax.Submit(), we can specify the target div to be modified with the template rendered by the corresponding action. Is there way using which we can update multiple divs ( using render update) from the called action in ajax.submit() I a

[Rails] Re: commenting in new.erb template file

2010-06-28 Thread RailsFan Radha
ssmithstone wrote: > change > > > > to <%#= collection_select(:book,:subject_id,@subjects,:id,:name) %> thanks for all . thanks rajeev and hassan and michael. thanks MicahelPavling, santosh, axelsef and ssmithstone. special thanks to michael, santosh and ssmithstone, I commented those two li

Re: [Rails] Rails 3 api

2010-06-28 Thread Fernando Brito
I also like this one: http://railsapi.com/doc/rails-v3.0.0.beta.3/ Please note that we are in beta4. There is also the "Ruby on Rails Guides" updated. http://guides.rails.info/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to t

[Rails] Re: Re: Relationship problems

2010-06-28 Thread Neil Bye
Michael Pavling wrote: > On 28 June 2010 11:37, Neil Bye wrote: >> Michael Pavling wrote: >> >>> >>> :recipient => @story.user.email_address >> >> That gives undefined method `user' for nil:NilClass > > If you have a Story object somewhere, and the story instance has a > user, and that user has

Re: [Rails] How do you deploy RoR? Newb alert!

2010-06-28 Thread Bob Nadler
Hi, Try "Deploying Rails Applications"[1] from the Pragmatic Bookshelf. It covers what you're looking for. [1] http://pragprog.com/titles/fr_deploy/deploying-rails-applications -- Bob On Sun, Jun 27, 2010 at 2:42 PM, Jeremy wrote: > Hi there, > I'm a newb when it comes to RoR but I have some q

[Rails] JOBS - Ruby Developer

2010-06-28 Thread Richard Marshall
Hi All Looking for a solid Ruby developer who is looking for contract work in London. working for a fantastic online client. Please contact me for this great position. • Ruby on Rails 2.3+ web application development • Familiar with HTML/CSS • Object Orientated programming skil

Re: [Rails] form_for won't generate the correct action path

2010-06-28 Thread bill walton
Hi Richard, On Mon, 2010-06-28 at 06:46 -0700, richardsugg wrote: > I'm really baffled since this should be very textbook: > > <% form_for :person, :url => { :controller => "people", :action => > "update", :id => @person.id } do |form| %> > > should produce > > > > but instead it produces >

[Rails] form_for won't generate the correct action path

2010-06-28 Thread richardsugg
I'm really baffled since this should be very textbook: <% form_for :person, :url => { :controller => "people", :action => "update", :id => @person.id } do |form| %> should produce but instead it produces What's going on? I really thought I could just do <% form_for :person, :url => { :act

[Rails] Re: How can I improvement concurrence performance?

2010-06-28 Thread Lecky
Try to use some third party web service to host your app, like Heroku or Amazon Web Service EC2. Cheers, Lecky Lao On Jun 25, 6:25 pm, Zhao Yi wrote: > I found that if many users access to Rails at the same time, users will > wait for a long time. How can I set the concurrence user number in > R

[Rails] Re: I am looking for Ruby on Rails Projects

2010-06-28 Thread Marnen Laibow-Koser
sai ror wrote: > Hi, > > I am a Sr.Ruby on Rails Developer from India.I am ready to work on > projects. >From the list guidelines: "Attention: posting any kind of advertisement for commercial products or services, unless in reply to a related question, is prohibited." > > Cheers, > Sai --

Re: [Rails] Re: Relationship problems

2010-06-28 Thread Michael Pavling
On 28 June 2010 11:37, Neil Bye wrote: > Michael Pavling wrote: > >> >> :recipient => @story.user.email_address > > That gives undefined method `user' for nil:NilClass Well then the "It won't accept @story.user because I don't know how to make a relationship between the story model and the email

[Rails] Re: Remove first part of path, if = a particular string?

2010-06-28 Thread Max Williams
Bill Walton wrote: > > Easily, with named routes. > Thanks Bill - would you mind explaining your easy named routes solution? :) -- 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

Re: [Rails] Remove first part of path, if = a particular string?

2010-06-28 Thread Bill Walton
Hi Max, On Mon, Jun 28, 2010 at 6:51 AM, Max Williams wrote: > Hi all.  I'm moving our site from eg /staging/ to > simply be > /.  I want to catch all the people who have > bookmarked the "staging/" urls (or have them in their browser history) > and redirect them to the equivalent url without "st

[Rails] Remove first part of path, if = a particular string?

2010-06-28 Thread Max Williams
Hi all. I'm moving our site from eg /staging/ to simply be /. I want to catch all the people who have bookmarked the "staging/" urls (or have them in their browser history) and redirect them to the equivalent url without "staging/". Eg if someone goes to /staging/foos/123/edit it will send the

Re: [Rails] I am looking for Ruby on Rails Projects

2010-06-28 Thread Amala Singh
Hi, Please gtalk to me as I got some Indian languages project. On 26 June 2010 09:23, sai ror wrote: > Hi, > > I am a Sr.Ruby on Rails Developer from India.I am ready to work on > projects. > > Cheers, > Sai > > -- > You received this message because you are subscribed to the Google Groups >

Re: [Rails] Google ad Sense code implementation with Ruby on Rails

2010-06-28 Thread Amala Singh
I dont think that google adsense is a public service or they provide a web service for that. Why should they give a public service for a private data? I wonder. But there should be a way to get the google analytics. On 28 June 2010 07:50, palani wrote: > > > i want to integrate google ad in my

[Rails] Re: Relationship problems

2010-06-28 Thread Neil Bye
Michael Pavling wrote: > > :recipient => @story.user.email_address That gives undefined method `user' for nil:NilClass -- 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, se

[Rails] I am looking for Ruby on Rails Projects

2010-06-28 Thread sai ror
Hi, I am a Sr.Ruby on Rails Developer from India.I am ready to work on projects. Cheers, Sai -- 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 thi

[Rails] Problem in Routing and associations

2010-06-28 Thread Jatin
Hello, I am new to Ruby on Rails and i am stuck on this problem. I have two models products and categories. I have scaffolded both the models with the basic attributes and i am using has_many through associations. Now, i want to add categories for a product, so i have made an action select-categor

[Rails] How can I tell what actionmailer is actually doing?

2010-06-28 Thread Rod Paddock
I believe I have my ActionMailer in environment.rb configured properly and have setup the proper classes. I am not receiving the e- mails I am sending. My configuration and classes are below. What I would like to know is how can I log or determine exactly what is happening when I send e-mail. I

[Rails] Re: commenting in new.erb template file

2010-06-28 Thread ssmithstone
change to <%#= collection_select(:book,:subject_id,@subjects,:id,:name) %> On Jun 27, 5:35 am, RailsFan Radha wrote: > app/views/category/new.erb > > In this file , i have two line like this > > > > > > But, if these two lines are present , i get an error saying > "you have an unexpected nil

[Rails] How do you deploy RoR? Newb alert!

2010-06-28 Thread Jeremy
Hi there, I'm a newb when it comes to RoR but I have some questions about deployment that has eluded me since I heard about RoR 2+ years ago. I was hoping someone could shed some light for me on this subject. I've read many books on Ruby and Rails, and I've watched many video tutorials but after h

[Rails] Google ad Sense code implementation with Ruby on Rails

2010-06-28 Thread palani
i want to integrate google ad in my existing webpages in ror .please help me . i found topic on my question in http://atservice.blogspot.com/2008/07/g … ation.html but when i tried this AdsController.rb file isnot there... so please help me... -- You received this message because you are

[Rails] Limiting Error Messages

2010-06-28 Thread Ants Pants
Hello, I'm using Authlogic and I don't like the error messages it provides for acts_as_authentic and I was wondering how to go about cleaning them up. My point is, if a password/email are missing, then I get Email is too short (minimum is 6 characters) Email should look like an email addres

Re: [Rails] Relationship problems

2010-06-28 Thread Michael Pavling
On 28 June 2010 10:22, Neil Bye wrote: > I am trying to send an email using ActionMailer. I am having problems > identifying the recipient in email.controller. I want it to be the owner > of the current story. > It won't accept @story.user because I don't know how to make a > relationship between

[Rails] Relationship problems

2010-06-28 Thread Neil Bye
I am trying to send an email using ActionMailer. I am having problems identifying the recipient in email.controller. I want it to be the owner of the current story. It won't accept @story.user because I don't know how to make a relationship between the story model and the email model. Trouble is us

Re: [Rails] Re: Re: Re: How can I improvement concurrence performance?

2010-06-28 Thread Xianggong
Well, have a try 'Passenger' server, or 'Thin', 'ngix', etc 2010/6/28 Zhao Yi > Tim Teng wrote: > > script/server will invoke webrick by default, and webrick of course is a > > single thread server. So test your app with other servers and check > > whether > > it still performs poor. > > > > 在 2

  1   2   >