[Rails] Problem in resque: job not getting removed from queue when finished processing

2011-04-05 Thread Nilesh
Hi, I am using resque, and resque-scheduler in my rails application. I am facing strange problem in using resque-scheduler. One of my job is not getting removed from queue, once it finishes with the 'perform' method. I need to kill it explicitly to get out of the queue, then other jobs in the

[Rails] Attn: Corp Sponsors - Hosting a Ruby-on-Rails Mixer, RoR Puzzle/Contest, DJ, Artwork, Entertainers, etc. - in San Francisco, April 28th

2011-04-05 Thread Danny!
This is truly an exclusive offer… - your organization has till WEDNESDAY (April 6th – 12 Midnight, Pacific Time) to reserve one of the 5 (Five) corporate sponsorships available for this exclusive Ruby- on-Rails Event… Event: Ruby-on-Rails Round-Up and MeetUp Location: The Redlight 45 Maiden

Re: [Rails] Re: "Lazy" image resizing?

2011-04-05 Thread Walter Lee Davis
On Apr 5, 2011, at 4:38 PM, Robert Walker wrote: Walter Davis wrote in post #991085: I'm looking at Dragonfly, which seems to offer what I'm looking for in this area: the ability to upload an image, then later request that image at a different geometry, and either get a cached copy of that r

[Rails] Re: Unable to connect

2011-04-05 Thread Bruce
On Apr 5, 1:02 pm, Colin Law wrote: > On 5 April 2011 20:44, Bruce wrote: > > > On Apr 5, 9:34 am, dana tassler wrote: > >> I've made that mistake myself a time or two (still new to Rails). > > >> The idea, Bruce, is that you want to run your *specific* web > >> application. > > >> If you think

Re: [Rails] Re: Problem with conversion array of strings to array of arrays of integers

2011-04-05 Thread Bartek Iwaszkiewicz
W dniu 2011-04-06 01:44, Kendall Gifford pisze: .map { |x| x.split(",").map(&:to_i) } Thank you very much Kendall, it is exactly what i need. -- 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 rubyonr

[Rails] Re: What is - !ruby/object: ?

2011-04-05 Thread David Zhu
Thank you for the response So basically it* doesn't* populate a database table? But instead, I retrieve it directly from the yaml file? -David -- 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 rubyon

[Rails] Re: Problem with conversion array of strings to array of arrays of integers

2011-04-05 Thread Kendall Gifford
On Tuesday, April 5, 2011 5:31:16 PM UTC-6, rails.rookie wrote: > > Hi > > Is it possible to convert array like this ["0", "1", "2", "1,2", > "3", "1,3", "1,2,3,4,5,6,9"] > to this [[0], [1], [2], [1,2], [3], [1,3], [1,2,3,4,5,6,9]] (all should > be int) > > Any help will be very appreciate

[Rails] Re: What is - !ruby/object: ?

2011-04-05 Thread Kendall Gifford
On Tuesday, April 5, 2011 5:15:32 PM UTC-6, David Zhu wrote: > > I'm trying to get this plugin to work: > https://github.com/mettadore/geoinfo > > It basically gets you all the cities and states in the United States. > > However, it reads: "I haven’t added a rake task to populate the database > y

[Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread John Merlino
> > def posts! > Title.each_with_index do |t, i| > post! t, Body[i], @current_user.id > end > end each_for_index is very helpful. Thanks a lot for responses. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Problem with conversion array of strings to array of arrays of integers

2011-04-05 Thread Bartek Iwaszkiewicz
Hi Is it possible to convert array like this ["0", "1", "2", "1,2", "3", "1,3", "1,2,3,4,5,6,9"] to this [[0], [1], [2], [1,2], [3], [1,3], [1,2,3,4,5,6,9]] (all should be int) Any help will be very appreciated couse I've really stucked with this. Thanks in advance, Bartek Iwaszkiewicz

[Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread Kendall Gifford
> > One way to do what you want would be (assuming Title and Body will always > contain the same number of elements): > > def posts! > Title.each_with_index do |t, i| > post! t, Body[i], @current_user.id > end > end > > I'm sure there are more clever, ruby-ish ways for paralle

[Rails] What is - !ruby/object: ?

2011-04-05 Thread David Zhu
I'm trying to get this plugin to work: https://github.com/mettadore/geoinfo It basically gets you all the cities and states in the United States. However, it reads: "I haven’t added a rake task to populate the database yet. But the YAML files are in vendor/plugins/geoinfo/lib/db/*.yml" Alright,

[Rails] [ANN] Rails 3.0.6 has been released (now with more bugfixes™)!

2011-04-05 Thread Aaron Patterson
Hi everybody! Rails 3.0.6 has been released! Let's get the serious business out of the way first: ## Rails 3.0.6 contains an important security fix! Please upgrade! Rails versions 3.0.x prior to 3.0.6 contain an XSS vulnerability. The vulnerability manifests itself via the `auto_link` method.

[Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread Kendall Gifford
On Tuesday, April 5, 2011 4:37:58 PM UTC-6, Ruby-Forum.com User wrote: > > Kendall Gifford wrote in post #991124: > > Have you tried adding: > > > > StaticDataGenerator.new.posts! > > > > to the end of your file? > > Thanks for response. yes, that worked. > Cool. > That makes sense that you nee

[Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread John Merlino
Kendall Gifford wrote in post #991124: > Have you tried adding: > > StaticDataGenerator.new.posts! > > to the end of your file? Thanks for response. yes, that worked. That makes sense that you need to call a method in client code for it to do anything. I do have one unexpected result. This met

Re: [Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread Bryan Crossland
On Tue, Apr 5, 2011 at 3:45 PM, David Kahn wrote: > > > On Tue, Apr 5, 2011 at 2:34 PM, Kendall Gifford wrote: > >> Have you tried adding: >> >> StaticDataGenerator.new.posts! >> > > Yeah, that would make sense. I have run into that before where validation > or something fails. BYW, does anyone

Re: [Rails] Re: Query REST

2011-04-05 Thread Franz Strebel
On 5 April 2011 19:27, Michael Hanna wrote: > Do you know of a quick and dirty example? I understand the concept > you're describing, but I don't know where I can find an example of the OK, in your Todo model, create a named scope named_scope :search, lambda { |s| options = { :order => :title

Re: [Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread David Kahn
On Tue, Apr 5, 2011 at 2:34 PM, Kendall Gifford wrote: > Have you tried adding: > > StaticDataGenerator.new.posts! > Yeah, that would make sense. I have run into that before where validation or something fails. BYW, does anyone know if there is a way to invoke the debugger during rake db:seed

[Rails] Re: "Lazy" image resizing?

2011-04-05 Thread Robert Walker
Walter Davis wrote in post #991085: > I'm looking at Dragonfly, which seems to offer what I'm looking for in > this area: the ability to upload an image, then later request that > image at a different geometry, and either get a cached copy of that > resized image, or create and cache that image. >

Re: [Rails] Re: Unable to connect

2011-04-05 Thread Colin Law
On 5 April 2011 20:44, Bruce wrote: > On Apr 5, 9:34 am, dana tassler wrote: >> I've made that mistake myself a time or two (still new to Rails). >> >> The idea, Bruce, is that you want to run your *specific* web >> application. >> >> If you think of it that way, that may help. >> >> And not that

[Rails] Hiring a Twilio Rails Developer

2011-04-05 Thread Michael Kaiser-Nyman
Impact Dialing is looking for a Rails developer to help build its Twilio-based web application. Impact Dialing provides calling software as a service. We offer both predictive dialing (helping people who make lots of phone calls more efficient) and robocalls (playing pre-recorded messages to peop

[Rails] Re: Unable to connect

2011-04-05 Thread Bruce
On Apr 5, 9:34 am, dana tassler wrote: > I've made that mistake myself a time or two (still new to Rails). > > The idea, Bruce, is that you want to run your *specific* web > application. > > If you think of it that way, that may help. > > And not that I have a ton of experience, but I've found tha

[Rails] Re: Where to factor out a method

2011-04-05 Thread Ants Pants
Ignore all of these mails. It's late, I should've stopped working 4 hours ago. I really wasn't thinking straight. It's all sorted now. On 5 April 2011 21:25, Ants Pants wrote: > I think I'll answer my own question. I'll use a mixin. > > > On 5 April 2011 20:04, Ants Pants wrote: > >> Hello All

[Rails] Re: trying to seed data from seeds.rb within a class structure

2011-04-05 Thread Kendall Gifford
Have you tried adding: StaticDataGenerator.new.posts! to the end of your 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, sen

[Rails] Re: Where to factor out a method

2011-04-05 Thread Ants Pants
I think I'll answer my own question. I'll use a mixin. On 5 April 2011 20:04, Ants Pants wrote: > Hello All, > > A bit of background. I have an EventGroups controller with new/create which > are available to the general public and the rest of the CRUD actions are > available to the Admin::EventG

[Rails] trying to seed data from seeds.rb within a class structure

2011-04-05 Thread John Merlino
Hey all, I created this in seeds.rb because I want to avoid duplication as much as possible: class DataGenerator def initialize @current_user = User.first end def posts! Title.each do |t| Body.each do |b| post! t, b, @current_user.id end end end end class

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread Peter Bell
If the big focus is scalability I'd look at clojure, scala or erlang. Sent from my iPhone On Apr 5, 2011, at 1:22 PM, DavidJ wrote: > > On Tuesday, April 5, 2011 11:13:24 AM UTC-4, Peter Bell wrote: > > On Apr 5, 2011, at 11:02 AM, DavidJ wrote: > > No, obviously I don't *know*. However, I'v

[Rails] Where to factor out a method

2011-04-05 Thread Ants Pants
Hello All, A bit of background. I have an EventGroups controller with new/create which are available to the general public and the rest of the CRUD actions are available to the Admin::EventGroups controller. Because of the split, I also have EventGroupsBase controller which holds autocomplete_inde

[Rails] q: meta_search and select_tag

2011-04-05 Thread tom
hi does anyone know how to create a meta_search form-item for: <%= select_tag "platform", options_from_collection_for_select thx -- 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-tal

Re: [Rails] Sailthru-client gem

2011-04-05 Thread Bryan Crossland
On Tue, Apr 5, 2011 at 10:56 AM, Mlle wrote: > Hi, > > I'm trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open stream: > https://api.sailthru.com/email?format=json&api_key=etc > > Please post the full er

[Rails] Re: Query REST

2011-04-05 Thread Michael Hanna
Do you know of a quick and dirty example? I understand the concept you're describing, but I don't know where I can find an example of the syntax in the Rails controller to get it right. Also, I'm interested in possibly making the REST call from an abstracted view/controller framework like SproutCor

Re: [Rails] Re: Re: Re: How to call a helper function from jQuery?

2011-04-05 Thread Colin Law
On 5 April 2011 18:12, Edward Stembler wrote: > Colin Law wrote in post #991088: >> On 5 April 2011 17:58, Edward Stembler wrote: >> The helper is a ruby file returning html, right?  In that case you >> just call it from the html.erb file rendered by the AJAX action.  js >> doesn't come into it.

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread DavidJ
On Tuesday, April 5, 2011 11:13:24 AM UTC-4, Peter Bell wrote: > > > On Apr 5, 2011, at 11:02 AM, DavidJ wrote: > > > No, obviously I don't *know*. However, I've watched as businesses have > gone under precisely because they didn't architect for scale at the outset. > There is no reason not to

[Rails] Rails Timing Log Incorrect?

2011-04-05 Thread jnimety
Hello, I'm trying to understand the following log message: "Completed 200 OK in 689ms (Views: 586.6ms | ActiveRecord: 2522.1ms)". Shouldn't Views + ActiveRecord <= 689ms? Or am I misunderstanding the output? Rails 3.0.5, Ruby 1.9.2p180 w/ gcdata and gctuning patches. output is from running "bund

[Rails] Re: Re: Re: How to call a helper function from jQuery?

2011-04-05 Thread Edward Stembler
Colin Law wrote in post #991088: > On 5 April 2011 17:58, Edward Stembler wrote: > The helper is a ruby file returning html, right? In that case you > just call it from the html.erb file rendered by the AJAX action. js > doesn't come into it. True. I could just let the Rails controller + view

Re: [Rails] Re: Re: How to call a helper function from jQuery?

2011-04-05 Thread Colin Law
On 5 April 2011 17:58, Edward Stembler wrote: > Colin Law wrote in post #991056: >> On 5 April 2011 16:07, Edward Stembler wrote: >> So, if I understand correctly, you don't want to call the helper from >> javascript, you want to fire the AJAX call from javascript and call >> the helper from the

[Rails] Re: Re: How to call a helper function from jQuery?

2011-04-05 Thread Edward Stembler
Colin Law wrote in post #991056: > On 5 April 2011 16:07, Edward Stembler wrote: > So, if I understand correctly, you don't want to call the helper from > javascript, you want to fire the AJAX call from javascript and call > the helper from the view rendered by the AJAX action on the server, to >

[Rails] "Lazy" image resizing?

2011-04-05 Thread Walter Lee Davis
I'm looking at Dragonfly, which seems to offer what I'm looking for in this area: the ability to upload an image, then later request that image at a different geometry, and either get a cached copy of that resized image, or create and cache that image. Can anyone point me to alternatives? I

Re: [Rails] Re: Unable to connect

2011-04-05 Thread Colin Law
On 5 April 2011 16:37, Bruce wrote: Please don't top post, it makes it difficult to follow the thread, insert your reply at appropriate points in previous message. Thanks. > The "Unable to Connect" message is a Firefox browser message. > > When I open the server in the command prompt window I g

[Rails] Re: Unable to connect

2011-04-05 Thread dana tassler
I've made that mistake myself a time or two (still new to Rails). The idea, Bruce, is that you want to run your *specific* web application. If you think of it that way, that may help. And not that I have a ton of experience, but I've found that when I need to start the server then I'm usually in

[Rails] Re: Sailthru-client gem

2011-04-05 Thread Mlle
if I use this code and manually insert the uri that the sailthru.get_email method is generating is comes back with a response. require "net/https" require "uri" uri = URI.parse("https://secure.com/";) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VE

[Rails] Re: Query REST

2011-04-05 Thread Robert Walker
Franz Strebel wrote in post #991045: > On 5 April 2011 16:14, Michael Hanna wrote: >> so how can I use REST by querying for a todo that has a specific >> title? I'm not sure how to do this. > > So you're still interested in a list of todos, but this time filtered > depending > on the title. > > Yo

[Rails] Re: Sailthru-client gem

2011-04-05 Thread Mlle
Hmm, do you think it could have anything to do with SSL? On Apr 5, 12:16 pm, Colin Law wrote: > On 5 April 2011 17:11, Mlle wrote: > > > Yes > > Sorry that was my one an only (and useless) idea. > > Colin > > > > > > > On Apr 5, 12:07 pm, Colin Law wrote: > >> On 5 April 2011 16:56, Mlle wrote

Re: [Rails] Re: Sailthru-client gem

2011-04-05 Thread Colin Law
On 5 April 2011 17:11, Mlle wrote: > Yes Sorry that was my one an only (and useless) idea. Colin > > On Apr 5, 12:07 pm, Colin Law wrote: >> On 5 April 2011 16:56, Mlle wrote: >> >> > Hi, >> >> > I'm trying to set up Sailthru but get this error when I try to use it >> > (get_email method): >>

Re: [Rails] Re: Unable to connect

2011-04-05 Thread Colin Law
On 5 April 2011 17:02, Bruce wrote: > On Apr 5, 8:46 am, Colin Law wrote: >> On 5 April 2011 16:37, Bruce wrote: >> >> Please don't top post, it makes it difficult to follow the thread, >> insert your reply at appropriate points in previous message.  Thanks. >> >> > The "Unable to Connect" messa

Re: [Rails] Sailthru-client gem

2011-04-05 Thread Colin Law
On 5 April 2011 16:56, Mlle wrote: > Hi, > > I'm trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open stream: > https://api.sailthru.com/email?format=json&api_key=etc Does the url open if you enter it int

[Rails] Re: Sailthru-client gem

2011-04-05 Thread Mlle
Yes On Apr 5, 12:07 pm, Colin Law wrote: > On 5 April 2011 16:56, Mlle wrote: > > > Hi, > > > I'm trying to set up Sailthru but get this error when I try to use it > > (get_email method): > > > Sailthru::SailthruClientException: Unable to open stream: > >https://api.sailthru.com/email?format=jso

[Rails] Re: Unable to connect

2011-04-05 Thread Bruce
On Apr 5, 8:46 am, Colin Law wrote: > On 5 April 2011 16:37, Bruce wrote: > > Please don't top post, it makes it difficult to follow the thread, > insert your reply at appropriate points in previous message.  Thanks. > > > The "Unable to Connect" message is a Firefox browser message. > > > When I

[Rails] Re: Sailthru-client gem

2011-04-05 Thread Mlle
I'm running the app locally, so do I have to do anything in particular to open an external stream? On Apr 5, 11:56 am, Mlle wrote: > Hi, > > I'm trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open > stream:

[Rails] Sailthru-client gem

2011-04-05 Thread Mlle
Hi, I'm trying to set up Sailthru but get this error when I try to use it (get_email method): Sailthru::SailthruClientException: Unable to open stream: https://api.sailthru.com/email?format=json&api_key=etc -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Unable to connect

2011-04-05 Thread Bruce
The "Unable to Connect" message is a Firefox browser message. When I open the server in the command prompt window I get a long list of options and a description and example of the "rails new" command. Then the cursor positioned after, "C:\Sites>. Bruce On Apr 5, 1:32 am, Colin Law wrote: > On

[Rails] Re: habtm only saving one record

2011-04-05 Thread jeb
This gets even stranger. The problem is that the parameter from the mulitline collection_select is an array with ONE element! The element is a string "3,5,4,1". To update the habtm I need an array of four integer elements [3,5,4,1] How can this happen??? :-( jeb On 30 mar, 15:38, jeb wrot

Re: [Rails] Re: How to call a helper function from jQuery?

2011-04-05 Thread Colin Law
On 5 April 2011 16:07, Edward Stembler wrote: > Colin Law wrote in post #991047: >> On 5 April 2011 15:27, Edward Stembler wrote: >> Is it a ruby helper function?  If so you can only run it on the server >> before rendering the page (or ajax response), so you cannot call it >> from javascript.  W

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread Peter Bell
On Apr 5, 2011, at 11:02 AM, DavidJ wrote: > No, obviously I don't *know*. However, I've watched as businesses have gone > under precisely because they didn't architect for scale at the outset. There > is no reason not to it as it really is little more effort than not doing so. I've build ap

[Rails] Re: How to call a helper function from jQuery?

2011-04-05 Thread Edward Stembler
Colin Law wrote in post #991047: > On 5 April 2011 15:27, Edward Stembler wrote: > Is it a ruby helper function? If so you can only run it on the server > before rendering the page (or ajax response), so you cannot call it > from javascript. What are you trying to achieve? It's a custom helper

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread DavidJ
No, obviously I don't *know*. However, I've watched as businesses have gone under precisely because they didn't architect for scale at the outset. There is no reason not to it as it really is little more effort than not doing so. Consider this scenario which I watched pay out: A site had been

Re: [Rails] Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread Norm Scherer
On 04/05/2011 12:58 AM, eswar b. wrote: Can we develop a standalone application using Ruby on rails? Ruby on rails can be used to develop a comprehensive database backed web-application. My requirement is, can we develop a database backed standalone application using Ruby on rails. If so, could

Re: [Rails] How to call a helper function from jQuery?

2011-04-05 Thread Colin Law
On 5 April 2011 15:27, Edward Stembler wrote: > I have a helper function which accepts a table_name parameter and > outputs html.  How (and from where) do I call that Rails function from > Javascript (or jQuery)? > > Can I call it from jQuery's document.ready? > Or, do I need a .js.erb partial? >

Re: [Rails] Query REST

2011-04-05 Thread Franz Strebel
On 5 April 2011 16:14, Michael Hanna wrote: > so how can I use REST by querying for a todo that has a specific > title? I'm not sure how to do this. So you're still interested in a list of todos, but this time filtered depending on the title. You can have the index action receive a search string

[Rails] How to call a helper function from jQuery?

2011-04-05 Thread Edward Stembler
I have a helper function which accepts a table_name parameter and outputs html. How (and from where) do I call that Rails function from Javascript (or jQuery)? Can I call it from jQuery's document.ready? Or, do I need a .js.erb partial? Or, am I missing something else completely? -- Posted via

[Rails] Query REST

2011-04-05 Thread Michael Hanna
New to Rails and REST here. Say I have a simple Rails app called Todos. I generate a controller for Todos and so via REST I can obtain Todo at index 1 by calling say, localhost:3000/todos/1 I can also obtain all todos by doing localhost:3000/todos so how can I use REST by querying for a todo tha

[Rails] Re: Central London

2011-04-05 Thread Snake Plisken
Applicants must also live within commuting distance of central London and be eligible to work full-time in the UK. On Apr 5, 1:40 pm, Snake Plisken wrote: > Hi list, > > We are a 4 year old central London based digital services company > providing D2C online marketing and e-commerce solutions for

[Rails] block method output is generating twice

2011-04-05 Thread NazarHussain
write a block method to print a list def column (&block) if block_given? content_tag(:li, capture(self, &block)) else content_tag(:li, "") end end and using it as <%= data_list_for @leads, [" :10", "Age:30", "Contact:140", "Phone: 140", "Email:180", "Company:100", ""] do |l| %>

[Rails] Re: Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread rtacconi
You can develop an information management system with ROR with Oracle or many other DBMSs. The problem of VB is that any PC will need the application installed in a computer, that's way web applications are a normal choice. Scaffolding will help you in understanding how you can create a CRUD with R

[Rails] Can join tables be polymorphic?

2011-04-05 Thread Andy Tolle
For example: Currently I have: functions < functions_competencies < competencies exams < exam_competencies < competencies I'd like to dry up "functions_competencies" and "exam_competencies" by using a polymorphic association, by let's say 'attached_competencies': functions < attach

Re: [Rails] Re: Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Colin Law
On 5 April 2011 14:33, Walter Lee Davis wrote: > > On Apr 5, 2011, at 9:17 AM, Colin Law wrote: > >> Did you realise that it is not valid html to put a form inside a td, >> if that is what you are trying to do. > > Sorry, I disagree. Do you have a source for this? I just did a Textmate test > of t

Re: [Rails] Re: Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Walter Lee Davis
On Apr 5, 2011, at 9:17 AM, Colin Law wrote: Did you realise that it is not valid html to put a form inside a td, if that is what you are trying to do. Sorry, I disagree. Do you have a source for this? I just did a Textmate test of this: New XHTML document, type table and tab-expand it, c

Re: [Rails] Re: Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Colin Law
On 5 April 2011 14:17, Colin Law wrote: > On 5 April 2011 14:02, Sasi wrote: >> Ya sure.. > > Please don't top post, it makes it difficult to follow the thread. > Insert your reply at appropriate points in previous message.  Thanks > >> >> In controller at the top i have used.. >> >>  in_place_ed

Re: [Rails] Re: Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Colin Law
On 5 April 2011 14:02, Sasi wrote: > Ya sure.. Please don't top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks > > In controller at the top i have used.. > >  in_place_edit_for :value_store, :lower >  in_place_edit_for :valu

[Rails] Re: Central London

2011-04-05 Thread Lee Henson
Addendum: applicants must live within commuting distance of central London and be eligible to work full-time in the UK. On Apr 5, 1:40 pm, Snake Plisken wrote: > Hi list, > > We are a 4 year old central London based digital services company > providing D2C online marketing and e-commerce solution

[Rails] Re: Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Sasi
Ya sure.. In controller at the top i have used.. in_place_edit_for :value_store, :lower in_place_edit_for :value_store, :upper and in views i have called the text filed as <%for @value_store in @value_stores %> < %=@vale_store.colour.capitalize%> <%=in

[Rails] [JOB] Central London

2011-04-05 Thread Snake Plisken
Hi list, We are a 4 year old central London based digital services company providing D2C online marketing and e-commerce solutions for the creative industries. Our service delivery model is at the vanguard of the ‘new industry’ that is now emerging as technological innovation is rapidly making the

Re: [Rails] Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Colin Law
On 5 April 2011 13:47, Sasi wrote: > Hi All, > > Im using in_place_edit in my application ,for acheving this i have > used a plugin (super_inplace_controls). My rails version is 2.3.8 > > Insted of displaying the value and on click to provide the form for > editing. It is displaying me the whole c

[Rails] Inplace edit for rails displaying me the whole code content.

2011-04-05 Thread Sasi
Hi All, Im using in_place_edit in my application ,for acheving this i have used a plugin (super_inplace_controls). My rails version is 2.3.8 Insted of displaying the value and on click to provide the form for editing. It is displaying me the whole code in the page. as 0Cancel  Saving

[Rails] Re: [Solved] Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3

2011-04-05 Thread WSzP
Thanks a lot, Colin Law told me the solution. If anyone else has similar problem, the solution was adding: --- ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'kategoria', 'kategorias' end --- to the config/initializers/inflections.rb file. Thanks again. WSzP -- You receiv

Re: [Rails] Re: Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3

2011-04-05 Thread Colin Law
On 5 April 2011 13:22, WSzP wrote: > That's great to know, but please, can you tell me how to add > inflection rule? Or how do I explicitly tell Rails to use that > specific table? Have a look at config/initializers/inflections.rb Google will provide some examples if you cannot work out exactly w

Re: [Rails] Re: Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread Colin Law
On 5 April 2011 13:13, eswar b. wrote: > Thanks all. i appreciate your help. Let me be clear with my spec. i've > plans to develop this app, its kind of information management system for > an organisation. If it is an IMS are you sure that the database is going be local on the PC rather than cent

[Rails] Re: Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3

2011-04-05 Thread WSzP
That's great to know, but please, can you tell me how to add inflection rule? Or how do I explicitly tell Rails to use that specific table? Thanks a lot, Peter On Apr 5, 3:11 pm, Frederick Cheung wrote: > On Apr 5, 12:48 pm, WSzP wrote: > > > > > > > > > > > Hello, > > I recently updated Rails t

[Rails] Re: Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread eswar b.
Thanks all. i appreciate your help. Let me be clear with my spec. i've plans to develop this app, its kind of information management system for an organisation. i know that it can very well be done using Visual basic and Oracle. But, i just want to know if there is any other technology as robust as

[Rails] Re: Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3

2011-04-05 Thread Frederick Cheung
On Apr 5, 12:48 pm, WSzP wrote: > Hello, > I recently updated Rails to 3.0.5. The very same code that worked on > 3.0.3 now gives error. > The code is: > def kategorialista >   Kategoria.where(:elfogadva => TRUE).order("nev").collect {|s| > [s.nev, s.sefuri]} > end > > It is in application_control

[Rails] Rails 3.0.5 gives SQLite3::SQLException for the same code that works on 3.0.3

2011-04-05 Thread WSzP
Hello, I recently updated Rails to 3.0.5. The very same code that worked on 3.0.3 now gives error. The code is: def kategorialista Kategoria.where(:elfogadva => TRUE).order("nev").collect {|s| [s.nev, s.sefuri]} end It is in application_controller.rb with helper_method :kategorialista The erro

[Rails] Re: [HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex

2011-04-05 Thread Todd Fox
sudo gem update --system 1.4.2 works -- 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-talk@googlegroups.com. To unsubscribe from this group, send

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread Peter Bell
Twitter had huge scaling problems. While I am a big fan of Rails and while it is wrong to suggest rails cannot scale, if you really hit twitter scale you are not going to want to use a general purpose web framework with a SQL data store. However, almost none of us hit that scale which is why I b

[Rails] [RAILS] Why does AR use base_class for polymorphic relationship "type"

2011-04-05 Thread FuelXC
I have a couple models that inherit from a base class that then inherits from AR. When they are used in a polymorphic relationship the "type" is always the base class. Just curious if anyone has a reason why it doesn't use the *actual* class rather then the base_class. I have patched AR to use t

[Rails] Unable to install Rails

2011-04-05 Thread Arne De Herdt
Hello, I'm currently encountering a strange issue when I’m trying to install Rails for a new project. I’d like to work with the latest versions, so this is my initial starting point: C:\Windows\System32>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.7.1 - RUBY VERSION: 1.9.2 (2011-02-18

[Rails] Several Rails positions in South San Francisco Bay area

2011-04-05 Thread Detectedstealth
Hello, I just wanted to let you know there several Rails jobs in the South San Francisco Bay area (Mountain View/Palo Alto) near San Jose. Looking for: * Front End Developers * Senior Web Applications Developer * Senior Software Developer, Ruby on Rails All candidates considered will be expected

[Rails] Re: Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread Frederick Cheung
On Apr 5, 9:18 am, rtacconi wrote: > What do you mean for 'standalone application'? A desktop application? > If you are asking a desktop application the answer is no. Rails is a > web framework. > Although there have been things in the past last joyent slingshot (although that looks to be quite

[Rails] for yours navigation menus.

2011-04-05 Thread Mauro
What do use? I want a nice navigation menu for my application. I'm reading about toons of jquery examples but some are not free and some others are too complicated to use. I've found superfish jquery plugin: http://plugins.jquery.com/project/Superfish An advice? -- You received this message becau

Re: [Rails] .Net Developer Job Opening - Valencia, CA

2011-04-05 Thread Peter Hickman
Well there you are Vignesh, my post is the first result on Google for 'Vignesh Renikunt and Makro Technologies'. Sorta makes my day :P I feel a whole new career of Reputation Mismanagement opening up before me :) -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails] Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread Colin Law
On 5 April 2011 08:58, eswar b. wrote: > Can we develop a standalone application using Ruby on rails? > > Ruby on rails can be used to develop a comprehensive database backed > web-application. My requirement is, can we develop a database backed > standalone application using Ruby on rails. If so,

Re: [Rails] .Net Developer Job Opening - Valencia, CA

2011-04-05 Thread Peter Hickman
Wow it is really amazing how many recruiters come to this list just to show off how grossly incompetent they are. Well we can add Vignesh Renikunt and Makro Technologies to the list of recruiters who haven't got a clue and just spam vacancies to all corners of the web without making any effort to s

Re: [Rails] Unable to connect

2011-04-05 Thread Colin Law
On 5 April 2011 06:12, wordmystic wrote: > $ rails generate controller home index > > This created app/views/home/index.html.erb. > > I deleted the index.html with: $ rm public/index.html > > I edited my routes.rb file as follows: > > Blog::Application.routes.draw do >  root :to => "home#index" >

[Rails] Re: Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread rtacconi
What do you mean for 'standalone application'? A desktop application? If you are asking a desktop application the answer is no. Rails is a web framework. On Apr 5, 9:58 am, "eswar b." wrote: > Can we develop a standalone application using Ruby on rails? > > Ruby on rails can be used to develop a

[Rails] Capistrano deployment in load balancer with sticky session

2011-04-05 Thread rtacconi
Hi, I used to have a couple of applications running on a single server. Now they have been migrated in two server, load balanced using sticky sessions. They told me that files in the first server will be replicated during the night to the secondary. I still have my old Capistrano recipe to be upda

[Rails] Can we develop a standalone application using Ruby on rails?

2011-04-05 Thread eswar b.
Can we develop a standalone application using Ruby on rails? Ruby on rails can be used to develop a comprehensive database backed web-application. My requirement is, can we develop a database backed standalone application using Ruby on rails. If so, could you please share your knowledge on it. --