Re: [Rails] Performing nested queries in rails

2010-09-16 Thread Srikanth Shreenivas
Response inline below: On Fri, Sep 17, 2010 at 9:52 AM, vishy wrote: > I am fairly new to rails and trying to learn rails by creating some > projects on my own. I am trying to perform a geo search on a > restaurant model and I am using geokit for that. My model stores the > latitude and longitud

[Rails] receive mail with sendmail

2010-09-16 Thread Tom Mac
Hi Could any one please give links to any blogs (etc) which gives a detailed description on receiving emails to rails application with sendmail. I am using fedora12. I request help on configuring mail server (if needed) or can use mail server of another domain and forward it to my application. Do

[Rails] Re: Rails and database connection pooling

2010-09-16 Thread Joshua Partogi
Thanks Nick. You have been really helpful. I am just trying to figure out how this is different to connection pooling in the Java land. =) Cheers, Joshua. On Sep 16, 11:12 pm, Nick Sieger wrote: > On Wed, Sep 15, 2010 at 5:08 PM, Joshua Partogi > > wrote: > > Hi Nick, > > > Thank you for the re

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Greg Willits
Greg Willits wrote: > After much fiddling and googling, it seems to me that Mongrel, even the > 1.2.0pre2 release is not compatible with Rails 3 -- is that true? Thanks everyone for the feedback on the mongrel alternatives. -- gw -- Posted via http://www.ruby-forum.com/. -- You received this m

[Rails] Rails3 Plugin Guide init.rb confusion

2010-09-16 Thread Greg Willits
http://guides.rubyonrails.org/plugins.html#organize-your-files This has two things that doesn't make sense to me. 1) it advocates a Rails folder with it's own init.rb in it. AFAICT that's an old idiom that no longer applies to Rails 3, but I can't seem to find a definitive confirmation on that.

[Rails] Performing nested queries in rails

2010-09-16 Thread vishy
I am fairly new to rails and trying to learn rails by creating some projects on my own. I am trying to perform a geo search on a restaurant model and I am using geokit for that. My model stores the latitude and longitude for the location. I am searching for the specified location entered by the us

[Rails] Execute System command asynchronously in Controller->Action

2010-09-16 Thread Sudheendra Panganamala
My contoller -> action executes the ruby script on click of a button using System command. Ruby Script takes 30seconds to execute. If two users clicks the button same time in two separate browsers, second user execution will start after first user's reqeust is completed. I need suggestion how to

Re: [Rails] Rails 3 & Ajax

2010-09-16 Thread radhames brito
Thats all easy but first, is a little different in rails 3 than in the next example here , is not exactly what you want but it will get you started http://railscasts.com/episodes/196-nested-model-form-part-1 http://railscasts.com/episodes/196-nested-model-form-part-2 by the way, i bet you are

Re: [Rails] New to Ruby, can someone run down the various plugins for the framework?

2010-09-16 Thread radhames brito
for a pure beginner this is the best you can get for now http://media.rubyonrails.org/video/rails_blog_2.mov On Thu, Sep 16, 2010 at 7:27 PM, Philip Hallstrom wrote: > > I was recall reading that Ruby on rails has allot of options, can someone > run down some of the popular framework plugins?

Re: [Rails] New to Ruby, can someone run down the various plugins for the framework?

2010-09-16 Thread Philip Hallstrom
> I was recall reading that Ruby on rails has allot of options, can someone run > down some of the popular framework plugins? > > I'm not really sure what that person meant, but I am guessing they are > related to: ORM's, view template engines? > > I really want an idea of what's out there, in

[Rails] New to Ruby, can someone run down the various plugins for the framework?

2010-09-16 Thread S Ahmed
I was recall reading that Ruby on rails has allot of options, can someone run down some of the popular framework plugins? I'm not really sure what that person meant, but I am guessing they are related to: ORM's, view template engines? I really want an idea of what's out there, in a summarized fas

[Rails] [JOBS] Sr RoR Developer - Austin, TX

2010-09-16 Thread Capital Thought
Ruby on Rails Senior Developer – Capital Thought Capital Thought is looking to hire a Senior Ruby On Rails Developer to join our team. We are looking for a highly motivated, goal-oriented individual who will be responsible for designing, building and maintaining sections of the product. The succes

[Rails] Re: Cache output issue

2010-09-16 Thread Frederick Cheung
On Sep 16, 6:32 pm, badnaam wrote: > I am using memcached.. and have the folllowing in my partial. > > <%CACHE.fetch 'all_categories' do %> > > Category.all.each do |c| > <%= c.name %> > end > > <%end %> > > When I check in the irb console the "all_categories" key does get > populated. > So..

Re: [Rails] Re: Re: Re: Re: Having difficulty with threaded comments, using acts_as_tree

2010-09-16 Thread radhames brito
yes do that for articles and every model that as a comment attached On Thu, Sep 16, 2010 at 4:47 PM, Kelp Kelp wrote: > Are my routes correct in using this: > resources :articles, :has_many => :comments > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you

Re: [Rails] Re: vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread Walter Lee Davis
Finally figured it out. Updating the gem meant a significant change in the database, as well as a method I had been using becoming protected. After a bit of hacking and swearing, I have the desired result. Checking the Publish control no longer forces a new version. Thanks for your help!

Re: [Rails] is there any difference between......

2010-09-16 Thread Adam Stegman
On Thu, Sep 16, 2010 at 5:11 PM, Mauro wrote: > post[:title] and post.title? > It allows you to access the attribute value without going through a getter method. Not really a good idea most of the time, but it can be necessary, like if you're calling it from within the getter method itself. Ada

[Rails] is there any difference between......

2010-09-16 Thread Mauro
post[:title] and post.title? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.

[Rails] Re: Deploying a Rails app: Uninitialized constant Haml::Filters::Markdown

2010-09-16 Thread JR
Just in case someone comes searching for this, I narrowed down the problem to the BlueCloth gem. Removing the gem removes this problem, installing it again causes it again. That's as far as I was able to get... On Sep 8, 1:51 pm, JR wrote: > After some more investigation, I realized the applicati

Re: [Rails] Re: vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread Walter Lee Davis
This is crazy. The version jump from 1.0.1 to 1.0.2 includes a dependency on Ruby 1.8.7, which I don't have. I did manage to update to 1.0.1, we'll see if this works now... Walter On Sep 16, 2010, at 5:46 PM, Walter Lee Davis wrote: I'm looking through the versions on Github -- and it looks

Re: [Rails] Re: vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread Walter Lee Davis
I'm looking through the versions on Github -- and it looks like the latest versions might have this, while my older version does not. Gem refuses to update me further than this point, probably because I'm stuck on Ruby 1.8.6 on this machine. Walter On Sep 16, 2010, at 5:31 PM, Walter Lee D

[Rails] Re: account registration, authentication plugins

2010-09-16 Thread Rajinder Yadav
Thanks everyone for the input, AuthLogic and devise both look promising, if anyone has {other} links to blogs & tutorials for these two plugin please provide. The one tutorial for AuthLogic I've found is: http://github.com/binarylogic/authlogic_example I am leaning toward using devise and have f

Re: [Rails] Re: vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread Walter Lee Davis
Thanks, that's really helpful, but I'm not sure how to pass this on to vestal_versions. I've tried all manner of arguments to the versioned command, is that not the right place to do this? class Page < ActiveRecord::Base versioned :options => {:except => :publish} (also tried just :except

[Rails] Re: vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread E. Litwin
On Sep 16, 10:04 am, Walter Lee Davis wrote: > I'd like my published boolean to be excluded from the calculation as > to whether a version is created or not. Can anyone suggest a way to do > that? > Digging into the code a bit, it appears you can specify options to ignore certain columns. In lib

[Rails] Re: Re: Re: Re: Having difficulty with threaded comments, using acts_as_tree

2010-09-16 Thread Kelp Kelp
Are my routes correct in using this: resources :articles, :has_many => :comments -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegrou

[Rails] Re: Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread Marnen Laibow-Koser
Greg Donald wrote: > On Thu, Sep 16, 2010 at 2:23 PM, Marnen Laibow-Koser > wrote: >> Good. �You shouldn't be using fixtures in Cucumber -- or indeed at all. >> The feature, as implemented in Rails, is broken and should be avoided at >> all costs. > > Fixtures work great for me. Have you tried f

Re: [Rails] Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread David Kahn
Never mind. I just found this: http://wiki.github.com/aslakhellesoy/cucumber/fixtures Which states: ...you can access your fixture data from the database using *Model.find*. Example to find the first User model you’d use User.find(:first). So I was just trying to use the Test::Unit way -- users

Re: [Rails] Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread David Kahn
> On Thu, Sep 16, 2010 at 2:26 PM, Greg Donald wrote: > Fixtures work great for me. Greg, so you are able to load and use fixtures on cucumber on Rails3/1.9.2? Would you mind sharing how you load them in config and access them? David On Thu, Sep 16, 2010 at 2:26 PM, Greg Donald wrote: > On Th

Re: [Rails] Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread Greg Donald
On Thu, Sep 16, 2010 at 2:23 PM, Marnen Laibow-Koser wrote: > Good.  You shouldn't be using fixtures in Cucumber -- or indeed at all. > The feature, as implemented in Rails, is broken and should be avoided at > all costs. Fixtures work great for me. But if the sky is falling for you.. -- Greg

[Rails] Re: Re: Re: account registration, authentication plugins

2010-09-16 Thread Marnen Laibow-Koser
Srikanth Shreenivas wrote: > Thanks Marmen for the clarification for authentication vs authorization. > > Not sure about 'quote when replying' part, I am kind of new to forum. I > reply using gmail, things looks fine when I do the reply. > Am I missing something? Yes. Gmail normally quotes the

[Rails] Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread Marnen Laibow-Koser
David Kahn wrote: >> That does look rather terse -- but notice that all your steps are >> showing up as skipped. I'd say you've got a configuration issue. Check >> your cucumber setup. > > So it was a configuration error, having to do with my discovery that the > config/environment/cucumber.rb e

Re: [Rails] acts_as_solr plugin fate?

2010-09-16 Thread Paul
I suggest rsolr, since it is actively being developed (the Rails 3 version is in beta, but you can get it with --pre) I recently switched to rsolr for that reason. On Thu, Sep 16, 2010 at 10:54 AM, Hassan Schroeder wrote: > Just wanted to see if I was using the latest acts_as_solr plugin, but >

[Rails] Re: Javascript Error

2010-09-16 Thread Robert Pankowecki (rupert)
Also global.js should be loaded after <%= javascript_include_tag :defaults %> . Robert Pankowecki -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from

[Rails] Re: Resyful authenticatio current_user in model

2010-09-16 Thread Robert Pankowecki (rupert)
The third option is to make virtual attribute on the model and always set it when needed in the controller class Model attr_accessor :current_user def some_method if current_user.admin? #foo else #bar end end end class FoosController def index m = Model.find(

Re: [Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Peter De Berdt
On 16 Sep 2010, at 20:18, Marnen Laibow-Koser wrote: Looks like the Rails team thinks you should want to use Unicorn, as its gem is included (commented out, but there) in the default Gemfile that gets generated with any new Rails3 app... Or they were just trying to provide examples for severa

[Rails] Rails 3 & Ajax

2010-09-16 Thread crashbangboom
Hi... I'm using rails 3.0... I have, among others, a controller/model for both provers and certifications. I'm rendering a partial list of certifications in a @certification.prover_id]) I want to set the associated field "cal_flag" in the table to false @prover.cal_flag = false When I run this

Re: [Rails] Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread David Kahn
> That does look rather terse -- but notice that all your steps are > showing up as skipped. I'd say you've got a configuration issue. Check > your cucumber setup. So it was a configuration error, having to do with my discovery that the config/environment/cucumber.rb environment which was missin

Re: [Rails] Cache output issue

2010-09-16 Thread Srikanth Shreenivas
Not sure what is "Category.all" in your "each" enumerator. Try this, assuming CACHE.featch 'all_categories' is returning an array of sorts: <% CACHE.fetch('all_categories').each do |category| %> <%= category.name %> <% end %> On Thu, Sep 16, 2010 at 11:02 P

Re: [Rails] Re: has_many and bi-directional relationships

2010-09-16 Thread radhames brito
its done here http://railscasts.com/episodes/163-self-referential-association -- 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] Re: Re: account registration, authentication plugins

2010-09-16 Thread Srikanth Shreenivas
Thanks Marmen for the clarification for authentication vs authorization. Not sure about 'quote when replying' part, I am kind of new to forum. I reply using gmail, things looks fine when I do the reply. Am I missing something? Thanks Srikanth On Thu, Sep 16, 2010 at 11:18 PM, Marnen Laibow-Kose

Re: [Rails] Re: has_many and bi-directional relationships

2010-09-16 Thread Srikanth Shreenivas
How about something like this: class User < ActiveRecord::Base has_many :relations, :foreign_key => "from_user" end class Relation < ActiveRecord::Base belongs_to :from_user, :class_name => "User", :foreign_key => "from_user" belongs_to :to_user, :class_name => "User", :foreign_key => "t

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Marnen Laibow-Koser
Stan Kaufman wrote: > On Sep 16, 6:19�am, Parker Selbert wrote: >> Unicorn is pure Ruby and works perfectly with Rails3 >> -http://github.com/defunkt/unicorn > > Looks like the Rails team thinks you should want to use Unicorn, as > its gem is included (commented out, but there) in the default Ge

[Rails] Re: How to access a model method from within a view?

2010-09-16 Thread Abder-Rahman Ali
Thanks Marnen. Should I write the code the gets the height and width in a helper? Do you have an idea of how to do that? -- 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] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Stan Kaufman
On Sep 16, 6:19 am, Parker Selbert wrote: > Unicorn is pure Ruby and works perfectly with Rails3 > -http://github.com/defunkt/unicorn Looks like the Rails team thinks you should want to use Unicorn, as its gem is included (commented out, but there) in the default Gemfile that gets generated with

[Rails] Re: Re: account registration, authentication plugins

2010-09-16 Thread Marnen Laibow-Koser
Please quote when replying. Srikanth Shreenivas wrote: > You can also evaluate Ryan Bates' "cancan" - > http://github.com/ryanb/cancan > A nice RAILSCast ascii cast here with link to video cast: > http://asciicasts.com/episodes/192-authorization-with-cancan Cancan is for authorization, not authe

[Rails] Re: has_many and bi-directional relationships

2010-09-16 Thread Marnen Laibow-Koser
pipplo wrote: > I'm working on an app with a friend type system. I currently have > setup like this with 2 tables. > > users table keeps track of users > > user_relationships table keeps track of friendships. Now, there > should be two rows for each relationship. This is to keep track of > the

Re: [Rails] Re: account registration, authentication plugins

2010-09-16 Thread Srikanth Shreenivas
You can also evaluate Ryan Bates' "cancan" - http://github.com/ryanb/cancan A nice RAILSCast ascii cast here with link to video cast: http://asciicasts.com/episodes/192-authorization-with-cancan On Thu, Sep 16, 2010 at 10:26 PM, radhames brito wrote: > i looove devise, it has everything. > > h

[Rails] Cache output issue

2010-09-16 Thread badnaam
I am using memcached.. and have the folllowing in my partial. <%CACHE.fetch 'all_categories' do %> Category.all.each do |c| <%= c.name %> end <%end %> When I check in the irb console the "all_categories" key does get populated. So..CACHE.fetch 'all_categories' in irb does output the expected h

[Rails] has_many and bi-directional relationships

2010-09-16 Thread pipplo
I'm working on an app with a friend type system. I currently have setup like this with 2 tables. users table keeps track of users user_relationships table keeps track of friendships. Now, there should be two rows for each relationship. This is to keep track of the directional nature of the rel

[Rails] vestal_versions -- can I set it to ignore certain columns?

2010-09-16 Thread Walter Lee Davis
I'd like my published boolean to be excluded from the calculation as to whether a version is created or not. Can anyone suggest a way to do that? Thanks, Walter -- 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: account registration, authentication plugins

2010-09-16 Thread radhames brito
i looove devise, it has everything. http://railscasts.com/episodes/209-introducing-devise On Thu, Sep 16, 2010 at 11:44 AM, Marnen Laibow-Koser wrote: > Rajinder Yadav wrote: > > Hi, > > > > I would like to know what the most popular plugins people are using > > for creating membership account

[Rails] Re: script/console on production server

2010-09-16 Thread Fritz Trapper
Parker Selbert wrote: > sudo apt-get install libreadline5-dev Ah, thanks, thats the answer. -- 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...@

[Rails] Re: script/console on production server

2010-09-16 Thread Fritz Trapper
Greg Donald wrote: > Your ruby needs to be compiled with readline support. Make sure > libreadline is installed, then reconfigure and recompile. I compiled ruby-1.8.7-p249 myslf on ubuntu 8.04. How to install libreadline? apt-get doesn't know about it. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: account registration, authentication plugins

2010-09-16 Thread Marnen Laibow-Koser
Rajinder Yadav wrote: > Hi, > > I would like to know what the most popular plugins people are using > for creating membership accounts and authenticating their login? > > Thanks, > > -- > Kind Regards, > Rajinder Yadav Authlogic. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen

Re: [Rails] account registration, authentication plugins

2010-09-16 Thread Dave Aronson
On Thu, Sep 16, 2010 at 11:38, Rajinder Yadav wrote: > I would like to know what the most popular plugins people are using > for creating membership accounts and authenticating their login? The big one seems to be AuthLogic. -Dave -- Specialization is for insects. -RAH  | Have Pun, Will Babbl

[Rails] Re: undefined local variable or method `start_form_tag'

2010-09-16 Thread Michael Durrant
I LOVE it! James you are the MAN. Just suggesting a reasonable solution is awesome and I really mean it. I would hire you in an instant! No sly insults or anything in your message, now that's the way forward. Give me your email and I'll paypal you right now. I use j...@snap2web.com on public forum

[Rails] account registration, authentication plugins

2010-09-16 Thread Rajinder Yadav
Hi, I would like to know what the most popular plugins people are using for creating membership accounts and authenticating their login? Thanks, -- Kind Regards, Rajinder Yadav -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] Re: How to access a model method from within a view?

2010-09-16 Thread Marnen Laibow-Koser
Abder-Rahman Ali wrote: > I have asked this question on this forum: > http://www.ruby-forum.com/topic/216998#new > > I think that main key here is how can I access the method in a model > within a view. Is there a way to do that? If you have a model object, you can always call methods on it. But

Re: [Rails] Re: Re: Should web tests have fixtures?

2010-09-16 Thread radhames brito
look at this Factory.define :user do |f| f.sequence(:username) { |n| "user#{n}" } f.sequence(:email) { |n| "test#...@example.com " } f.association :company f.password "password" f.password_confirmation { |u| u.password } f.sequence(:name) { |n| "test#{n}" } f.sequence(:last_name) { |

[Rails] Re: Looking for a job

2010-09-16 Thread rtacconi
Sorry, I forget to prefix the subject with [JOBS]. I apoligise. However I am not offering... just looking. On Sep 16, 2:23 pm, Marnen Laibow-Koser wrote: > Riccardo Tacconi wrote: > > I have several years of web development experience bot a little more > > than one year with Rails. I will leave

[Rails] How to access a model method from within a view?

2010-09-16 Thread Abder-Rahman Ali
I have asked this question on this forum: http://www.ruby-forum.com/topic/216998#new I think that main key here is how can I access the method in a model within a view. Is there a way to do that? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are sub

[Rails] acts_as_solr plugin fate?

2010-09-16 Thread Hassan Schroeder
Just wanted to see if I was using the latest acts_as_solr plugin, but the URL takes me to a GoDaddy domain parking page. Anyone know what's happened to railsfreaks, and more particularly this plugin? -- Hassan Schroeder hassan.schro

[Rails] Re: Re: Hide an image in show.html.erb

2010-09-16 Thread Abder-Rahman Ali
radhames brito wrote: > i could suggest some jquery code if you want Thanks @radhames. I really don't have knowledge yet in jquery. So, that's fine. Thanks though. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: Re: Should web tests have fixtures?

2010-09-16 Thread Joshua Muheim
radhames brito wrote: > fixtures are hard to maintain and impractical comprared to factories, > factories are pluging/gems that create object dinamicly as needed so > you > can do thing like this > > i have 100 users > > with that the factory will create on the fly 100 users and you can later >

Re: [Rails] Re: Hide an image in show.html.erb

2010-09-16 Thread radhames brito
i could suggest some jquery code if you want On Wed, Sep 15, 2010 at 6:40 PM, Abder-Rahman Ali wrote: > Thanks Marnen for the advice. > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > T

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Marnen Laibow-Koser
Robert Walker wrote: > Parker Selbert wrote: >> Alternatively, if you don't want Passenger running locally or don't like >> it try: > > And as of very recently if you want a local Passenger that works much > like Mongrel then: > > gem install passenger --pre > cd your_project > passenger start

[Rails] Re: Resyful authenticatio current_user in model

2010-09-16 Thread Marnen Laibow-Koser
Mike Disuza wrote: > Hi, > I am using Restful authentication for user authentication. [...] This isn't directly related to your issue...but if you don't mind a bit of advice, I highly recommend removing restful_authentication from your project as soon as possible. It relies on unmaintainable ge

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Robert Walker
Parker Selbert wrote: > Alternatively, if you don't want Passenger running locally or don't like > it try: And as of very recently if you want a local Passenger that works much like Mongrel then: gem install passenger --pre cd your_project passenger start This will install and setup Phusion Pa

Re: [Rails] Re: Re: Re: Having difficulty with threaded comments, using acts_as_tree

2010-09-16 Thread radhames brito
:'( , but, but ... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For m

[Rails] Re: undefined local variable or method `start_form_tag'

2010-09-16 Thread James Byrne
Frederick Cheung wrote: > It was deprecated in 1.2 and removed in 2.0 > > Fred On the subject of error messages, with deprecations specifically in mind, I suggest the following approach at least be considered. Establish a deprecated_methods_index library at the top level of Rails so that, whe

[Rails] Re: [JOBS] Looking for a job

2010-09-16 Thread Marnen Laibow-Koser
Riccardo Tacconi wrote: > I have several years of web development experience bot a little more > than one year with Rails. I will leave my current job. I am an > intranet developer for a FTSE 100 company in UK. I can relocate. > > I am currently using Rails, shoulda, factory girl, watir, MySql.

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread Parker Selbert
Greg Willits wrote: > Is mongrel even being maintained anymore? Not exactly. But Mongrel 2 is coming along: http://mongrel2.org/home Alternatively, if you don't want Passenger running locally or don't like it try: Unicorn is pure Ruby and works perfectly with Rails3 - http://github.com/defunkt

[Rails] Re: script/console on production server

2010-09-16 Thread Parker Selbert
Fritz Trapper wrote: > > the very first 'require "readline"' in completion.rb fails. > script/console on my development machine works well. > > Any idea, how to fix this? This happens often in linux (Ubuntu in particular) builds. Essentially you need to install libreadline5-dev and then re-insta

[Rails] [JOBS] Looking for a job

2010-09-16 Thread rtacconi
I have several years of web development experience bot a little more than one year with Rails. I will leave my current job. I am an intranet developer for a FTSE 100 company in UK. I can relocate. I am currently using Rails, shoulda, factory girl, watir, MySql. -- You received this message beca

Re: [Rails] Re: Rails and database connection pooling

2010-09-16 Thread Nick Sieger
On Wed, Sep 15, 2010 at 5:08 PM, Joshua Partogi wrote: > Hi Nick, > > Thank you for the response. You mentioned that database connection > pool is created according to demand. What does that mean? Does it mean > if there are more users it will open more connection thus create more > connection poo

[Rails] Re: invisible attributes? - RESOLVED

2010-09-16 Thread Yoram Bernet
I was able to resolve this - in order to pull the db, I had to increasemax_allowed_packet on MySQL The weirdness on the invisible attribute was because of the way the SELECT works: http://caboo.se/doc/classes/ActiveRecord/MissingAttributeError.html Yoram -- Posted via http://www.ruby-forum.com

[Rails] Re: Re: Re: Having difficulty with threaded comments, using acts_as_tree

2010-09-16 Thread Marnen Laibow-Koser
Please quote when replying. It's hard to follow the discussion otherwise. radhames brito wrote: > yes but he is new to rails and there is a railscast for acts_as_tree, > thats > why i was suggesting it. So there's a Railscast. Big whoop. :) acts_as_tree is easy to use for some things, but s

[Rails] Re: Newbie: RoR good for "Kayak-type" site

2010-09-16 Thread acuitycorp
Thanks David and nobosh. For us there are too many moving parts to decide only analytically on something like this, but your personal experiences are probably going to be similar to what we encounter - and so more valuable than a feature list. What I understand is that it will probly take our dev

Re: [Rails] suggestion regarding permissions & co

2010-09-16 Thread radhames brito
why dont you like declarative authorization or cancan? i dont see why you cant do what you described with any of those On Wed, Sep 15, 2010 at 5:50 PM, tom wrote: > > > > hi, since im not fully satisfied with all the permissions-systems out there > i was wondering if there is another way to h

[Rails] wild card modal email forwarding to rails application

2010-09-16 Thread Tom Mac
Hi May be a long story. Sorry for that.My requirement as this. I have a saas application. The different people can create accounts. Each account holder can create users under them . An example is during account creation one user gives email as "adm...@mydomain.com'. Then after login to applicatio

Re: [Rails] Re: Capistrano Config Issue

2010-09-16 Thread radhames brito
You should be doing the pushing manually and capistrano the pulling from the repository, i dont let cap push. On Wed, Sep 15, 2010 at 4:45 PM, Marnen Laibow-Koser wrote: > Xenio wrote: > [... > > My understand was that Capistrano takes the files from my dev box, > > puts it on my github acco

Re: [Rails] script/console on production server

2010-09-16 Thread radhames brito
damn , that happen to me to, it also happens if you install rvm with out specifiying the libraries like openssl and such, is you are using rvm you need to pass the --with option and add the extra support. anyway you have to recompile with the missing libraries On Wed, Sep 15, 2010 at 3:50 PM, Gre

Re: [Rails] Re: Re: Having difficulty with threaded comments, using acts_as_tree

2010-09-16 Thread radhames brito
yes but he is new to rails and there is a railscast for acts_as_tree, thats why i was suggesting it. On Wed, Sep 15, 2010 at 2:03 PM, Marnen Laibow-Koser wrote: > radhames brito wrote: > > try to fix the thing i suggested in red and add a parent_id field to > > the > > comments table, > > then

[Rails] Problems with select

2010-09-16 Thread h0bit
Hello to every bofy i'm working with Ruby and i havve the next problem when i want to select an option from a select. I have the next code: <%= f.label :es_pyme, I18n.t('tog_user.model.es_pyme') %> <%= I18n

Re: [Rails] Re: DatabaseEntries deleted by rake

2010-09-16 Thread radhames brito
>.< that has nothing to with rails , did you make a backup? rake actually just runs commands, what happen was the same as if you had erased them manually. On Wed, Sep 15, 2010 at 1:39 PM, Marnen Laibow-Koser wrote: > Hans Hartmann wrote: > > Hi there, > > > > i unfoutunately raked my rails-p

Re: [Rails] Re: Should web tests have fixtures?

2010-09-16 Thread radhames brito
fixtures are hard to maintain and impractical comprared to factories, factories are pluging/gems that create object dinamicly as needed so you can do thing like this i have 100 users with that the factory will create on the fly 100 users and you can later change that 100 to 1000 . On Wed, Sep 1

Re: [Rails] AutoComplete (auto_complete_for)

2010-09-16 Thread radhames brito
they all work different now , because everything is unobstrusive. On Wed, Sep 15, 2010 at 1:04 PM, Luke wrote: > The functionality didn't go away in prototype, I assume - > text_field_with_auto_complete should still exist somewhere for rails > 3, no? The rails3-jquery gem seems to be a totally

Re: [Rails] Documentation for active record "validates" helper

2010-09-16 Thread radhames brito
validates triggers when validation accurds but it does not perform validation by it sellf you have to pass it the validation function validates :to_many_drinks def to_many_drinks self.drinks > 80 errors.add(:drinks, "LOL") end this add errors to the drinks column with a "LOL" message On W

[Rails] Re: Getting the dimensions of an image element

2010-09-16 Thread Abder-Rahman Ali
Since I'm using Paperclip, I will ask as follows: I have the following in my model and view. What should I place instead of ? in the view (show.html.erb)? *Model: class Dicom < ActiveRecord::Base has_attached_file :photo, :styles => {:original => ["100%", :jpg]} def getHeight() upl

[Rails] Pre-designed HTML editor

2010-09-16 Thread Vincenzo Ruggiero
Hello all, I have to develop a system for a client who need something like the Campaign Monitor Online WYSIWYG Editor but on for an HTML Output. (you can see the Campaing Monitor Editor in the attachment). The system is made by HTML files containing some "tags". These tags become "editable parts"

[Rails] Getting the dimensions of an image element

2010-09-16 Thread Abder-Rahman Ali
I have a view file, "show.html.erb", and a Javascript file, "coordinate.js". In coordinate.js" I have methods to calculate the width and height of an image. How can I call those methods on the "Canvas" in my view. And, below you can find the scripts of the two files: * show.html.erb <%= javasc

[Rails] Re: reload! in console?

2010-09-16 Thread Pieter Hugo
Marnen Laibow-Koser wrote: > Pieter Hugo wrote: >> hi Guys >> >> I'm doing changes to a model, and testing the changes interactively in >> the console. After saving a change to the model I use 'reload!' in the >> console. It seems that the objects that I were working with still exist >> in the con

Re: [Rails] hello

2010-09-16 Thread krishnamoorthy m
Hearty welcome On Wed, Sep 15, 2010 at 9:39 AM, radhames brito wrote: > Hello and welcome > > > On Tue, Sep 14, 2010 at 9:27 PM, Srikanth Shreenivas wrote: > >> Welcome to the world of RoR!!! >> >> >> >> >> On Tue, Sep 14, 2010 at 8:01 PM, abdelkarim wrote: >> >>> Hello every body ,

[Rails] Re: Rails 3 with Mongrel possible?

2010-09-16 Thread jergason
The Mac OS X Terminal.app also supports tabs. On Sep 15, 1:26 pm, Hongli Lai wrote: > You can use iTerm on OS X and GNOME Terminal or Konsole on Linux. They > both support tabs. On the Windows side I recommend > this:http://sourceforge.net/projects/console/ -- You received this message because

Re: [Rails] Resyful authenticatio current_user in model

2010-09-16 Thread Peter De Berdt
On 16 Sep 2010, at 09:31, Mike Disuza wrote: I am using Restful authentication for user authentication. I want the current logged in user object in my model property.rb Problem is current_user is not working on model. How can I fix this I need that? You have two options: 1. Pass the current

Re: [Rails] Javascript Error

2010-09-16 Thread Srikanth Shreenivas
Have you included the prototype javascript files in your layout? You can add this line in element of your layout file (/app/views/layout/.html.erb) <%= javascript_include_tag :defaults %> On Thu, Sep 16, 2010 at 11:32 AM, hari bhat wrote: > I am using document.observe("dom:loaded", function

[Rails] rspec and autotest problems

2010-09-16 Thread Hristo Tentchev
Hello. I am running rails 3. I installed the rspec, autotest gem. (OS Win7 64bit) 1. When I run rspec the command is not recognized, I could find it in the ruby/bin folder as well. 2. When I run autotest on a sample app (the one from chapter 3 from the railstutorial.org) I get something like this

[Rails] Resyful authenticatio current_user in model

2010-09-16 Thread Mike Disuza
Hi, I am using Restful authentication for user authentication. I want the current logged in user object in my model property.rb Problem is current_user is not working on model. How can I fix this I need that? Please help me out. Thanks, Mike -- Posted via http://www.ruby-forum.com/. -- You r