R: Re: [Rails] R: [ANN] Rails 3.0.7 has been released!

2011-04-19 Thread Manuele Dones
Ok i've changed the Gem file from rails 3.0.6 to rails 3.0.7, then run gem clean: it deleted all the older version. Then I've finally run bundle, and it downloaded some older version gem, for example mail 2.1.16 (so I've both mail 2.1.17 and 2.1.16). I think that's not an issue, since my app is

Re: Re: [Rails] R: [ANN] Rails 3.0.7 has been released!

2011-04-19 Thread Pedro Nascimento
just run 'bundle update rails'. On Tue, Apr 19, 2011 at 03:49, Manuele Dones manueledo...@gmail.com wrote: Ok i've changed the Gem file from rails 3.0.6 to rails 3.0.7, then run gem clean: it deleted all the older version. Then I've finally run bundle, and it downloaded some older version gem,

[Rails] Form's and Actions.

2011-04-19 Thread Niklas Nson
Have the following form: %= simple_form_for @user, :as = :user, :action = edit_notification do |f| -% %= f.input :email % %= f.input :email_alerts % %= f.input :email_summarize % %= f.input

R: Re: Re: [Rails] R: [ANN] Rails 3.0.7 has been released!

2011-04-19 Thread Manuele Dones
so bundle update rails is to update the application from an older to an earlier version, right? And then gem clean to remove the older version of the gems. That's should be the common rule... ;-) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Unable to find out proper document to integrating Salesforce with Rails

2011-04-19 Thread sreehari
Hi, I want to use salesforce with my rails3 project. I tried http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_Toolkit_for_Ruby documentation. But i am getting so many errors. It is urgent for me Please reply me if any body knows about this. Thanks in advance...

[Rails] Mobile application / Ruby on rails development

2011-04-19 Thread Bala bala
I have 20 years experience in software industry with focus in Open Source Platforms, Frameworks and Tools Development, Web based development using J2EE and Open Source Platforms,.Net Based Product(s) Development and Mobile System and Application Development. Currently I am involved in the

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-19 Thread cipher_neo
No, there is only the .js.erb file mentioned above. My public javascripts directory doesn't contain that file. The thing is that it doesn't always crash, it seems to be very random. I am so lost as to the cause, but I really need to find a workaround as it is very annoying trying to get any

Re: [Rails] How to change the url (from localhostL:3000) to (example.com)

2011-04-19 Thread Alexander
Open your /etc/hosts file in Linux. Windows is the same hosts file under some other directory. Any how puts the next line in the file 127.0.0.1 example.com Then if you ping example.com IP 127.0.0.1 will respond. now you can use example.com:3000 to access your web site. If you are not happy with

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-19 Thread rubynewbie
Thanks Bryan. I tried this as well as Using a Fiddler as a proxy. But I found that the downloads are being blocked based on the content by the firewall. Generally arbitrary Software Downloads are not permitted in my company. Theres a separate department which manages Software Downloads based

[Rails] Ruby-protobuff uses which version of GDP

2011-04-19 Thread Renuka Patil
How to know which GDP version is used by ruby-protobuff? Does it support latest version of GDP? Thanks, Renuka -- 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

[Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-19 Thread johnnybutler7
Aha thanks, i knew it would be something silly. The docs do suggest adding the gemfile.lock to your repository but based on this evidence thats not a good idea. I will need to find out how to manage this when deploying, do you add the production gemfile.lock to the repo On Apr 18, 2:50 

[Rails] Re: ActiveSupport 3.0.6: require 'active_support/core_ext' generates circular require warning

2011-04-19 Thread Alexey Muranov
This warning is still generated in activesupport 3.0.7. I submitted a bug report here: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6721 Is this the right place? Alexey. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

Re: [Rails] Re: ActiveSupport 3.0.6: require 'active_support/core_ext' generates circular require warning

2011-04-19 Thread Xavier Noria
On Tue, Apr 19, 2011 at 12:41 PM, Alexey Muranov li...@ruby-forum.com wrote: This warning is still generated in activesupport 3.0.7. I submitted a bug report here: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6721 Is this the right place? Perfect. A patch solving

[Rails] Re: whyt should i use mongrel_cluster ?

2011-04-19 Thread Robert Walker
amritpal p. wrote in post #993486: why should i use mongrel_cluster in my rails application? What are its benefits for which i should install and configure it ? is webrick server not enough for rails application? AFAIK Webrick is only suitable for development, or very low traffic web

Re: [Rails] confirming change of email with devise

2011-04-19 Thread Walter Lee Davis
On Apr 19, 2011, at 12:45 AM, Matt Harrison wrote: To me, it seems that if I go in and fiddle with the controller inside devise, then I'll end up with my own fork essentially and have to maintain that as well as my application. Does anyone have any insights or tips concerning this? If

Re: [Rails] Re: Ruby On Rails 3 and Webrick

2011-04-19 Thread radhames brito
On Mon, Apr 18, 2011 at 1:30 PM, kdwill pushplayme...@hotmail.com wrote: Here's where this noob gets nailed. I tried installing the suggested sudo and got command not found. Then I looked for the brew for mac and I'm just not getting it. Radhames, thanks for your help and patience. If

[Rails] Re: script or utility to transform a string w embedded spaces into a sym

2011-04-19 Thread Erwin
Thanks , I'll use this patch .. On 19 avr, 07:53, Michael Pavling pavl...@gmail.com wrote: On 18 April 2011 23:09, Erwin yves_duf...@mac.com wrote: I need to transform strings like Instructor ID  or Lovely Ice tree into sym  :instructor_id  , :lovely_ice_tree is there a better and faster

[Rails] Re: script or utility to transform a string w embedded spaces into a sym

2011-04-19 Thread Erwin
thanks , part of the solution as per Michael's patch On 19 avr, 00:38, Philip Hallstrom phi...@pjkh.com wrote: On Apr 18, 2011, at 3:09 PM, Erwin wrote: I need to transform strings like Instructor ID  or Lovely Ice tree into sym  :instructor_id  , :lovely_ice_tree I tried to do the

[Rails] Re: TimeZone Select Problemin Rails 3?

2011-04-19 Thread tashfeen.ekram
As it seems like TimeZone has been depreciated (http://apidock.com/ rails/TimeZone). what is the time zone library that should be used? Should we be using TZinfo? On Apr 15, 12:44 pm, tashfeen.ekram tashfeen.ek...@gmail.com wrote: OK. So, it will always display times on the select menu

[Rails] Re: has a field through an association

2011-04-19 Thread Matt Jones
On Apr 18, 1:59 pm, Garrett Lancaster glanc...@garrettlancaster.com wrote: Hey guys, Trying to figure out how to do something like the following: class Child      belongs_to :parent      has_field :some_field, :through = :parent end class Parent      has_one :child      

[Rails] Re: file_column undefined method relative_url_root

2011-04-19 Thread Matt Jones
On Apr 17, 1:32 pm, Tara Schultz tara.schu...@gmail.com wrote: I just installed and started using the file_column plugin and am getting the following error: No Method Error undefined method 'relative_url_root' for nil:NilClass Extracted source (around line #5) 5: %= image_tag

[Rails] Re: How to change the url (from localhostL:3000) to (example.com)

2011-04-19 Thread amrit pal pathak
On Apr 19, 4:09 am, Alexander cutal...@gmail.com wrote: Open your /etc/hosts file in Linux. Windows is the same hosts file under some other directory. Any how puts the next line in the file 127.0.0.1 example.com Then if you ping example.com IP 127.0.0.1 will respond. now you can use

[Rails] Re: what is mean of Deployment?

2011-04-19 Thread amrit pal pathak
On Apr 18, 1:14 pm, Colin Law clan...@googlemail.com wrote: On 18 April 2011 17:46, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 18, 12:30 pm, Colin Law clan...@googlemail.com wrote: On 18 April 2011 17:12, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr

[Rails] Re: what is mean of Deployment?

2011-04-19 Thread amrit pal pathak
I think the production enviorment is still not enabled.because i when i tried script/generate scaffold person firstname:string lastname:string; rake db:migrate(it created a table namedpeople in amritpal database that is used in development envionrment.But in production

[Rails] Re: TimeZone Select Problemin Rails 3?

2011-04-19 Thread tashfeen.ekram
I take that back. It does not seem like it is depreciated as it is in the latest rails docs... On Apr 19, 11:05 am, tashfeen.ekram tashfeen.ek...@gmail.com wrote: As it seems like TimeZone has been depreciated (http://apidock.com/ rails/TimeZone). what is the time zone library that should be

[Rails] Re: Re: AssociationTypeMismatch (superclass expected, got subclass)

2011-04-19 Thread Fearless Fool
Bryan Crossland wrote in post #993205: What is the code for the method find_stations_near? First, here's the code for find_local_weather_stations(). The create method raises the error: def find_local_weather_stations(limit = 10) premise_weather_stations.delete_all stations =

Re: [Rails] Re: what is mean of Deployment?

2011-04-19 Thread Colin Law
On 19 April 2011 17:26, amrit pal pathak amritpalpath...@gmail.com wrote: I think the production enviorment is still not enabled.because i when i tried   script/generate scaffold person firstname:string lastname:string;                   rake db:migrate(it created a table namedpeople in

[Rails] How to make url helpers aware of ssl_requirement?

2011-04-19 Thread Peter
Hi, I've been using the ssl_requirement plugin as it made the most sense to me from an architecture standpoint, where the controller that is doing the resource accessing declares where SSL is required or allowed. This works great in terms of ensure the ~final~ protocol is correct for that

[Rails] Re: Re: AssociationTypeMismatch (superclass expected, got subclass)

2011-04-19 Thread Fearless Fool
Okay, I have found a fix, or at least a workaround. If a Rails core team member is reading this, I'd appreciate knowing if this warrants a lighthouse ticket. If I add a .reload (to the AR that is already in the db): def load_station(candidate) if (incumbent =

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Mon, Apr 18, 2011 at 1:26 PM, David Kahn d...@structuralartistry.comwrote: On Mon, Apr 18, 2011 at 1:11 PM, Michael Pavling pavl...@gmail.comwrote: On 18 April 2011 16:38, David Kahn d...@structuralartistry.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow

[Rails] Couldn't find Comment without an ID

2011-04-19 Thread Neil Bye
Im trying to makee an application that allows subcomments ie comments on comments. The point where I get stuck is finding the comment that is commented on. This is an excerpt from subcomment.rb def create @comment = Comment.find(params[:id]) @comment.subcomments.create( :comment_id =

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread Philip Hallstrom
Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now = #DateTime 2011-04-18T10:35:18-05:00 ruby-1.8.7-p330 :002 DateTime.now + 1.day = #DateTime 2247-11-07T10:35:21-05:00 I wonder if it's something along the lines of the

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:08 PM, Philip Hallstrom phi...@pjkh.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now = #DateTime 2011-04-18T10:35:18-05:00 ruby-1.8.7-p330 :002 DateTime.now + 1.day = #DateTime

[Rails] Strange issue in Devise with rails 3.0.5

2011-04-19 Thread nishant
Hello guys, I am using Devise with rails 3.0.5 and ruby 1.8.7 whenever i am trying to call a delete action through Ajax devise logged out i don't know what is the problem .. i am calling a destroy action using Ajax updater and its logged me out, one reason i found out by searching is to include

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread Philip Hallstrom
So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the file mentioned above is getting loaded). Actually if Phillip, or someone else (running Ruby 1.8.7-p334 and Rails 3.0.7 ideally on Snow Leopard mac or

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.com wrote: So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the file mentioned above is getting loaded). Actually if Phillip, or someone else

[Rails] Re: Couldn't find Comment without an ID

2011-04-19 Thread Tim Shaffer
What does your model look like? Do you have the appropriate has_many and belongs_to for the subcomments to work? In general, you shouldn't need to specify comment_id for the child when you access it via the has_many relationship. For example: @comment = Comment.find(params[:id]) new_comment =

[Rails] Using constraints

2011-04-19 Thread Pavel Varela
Hello! Im developing my first rails application =) I have such a code in my routes.rb: match 'category/:category' = articles#index, :as = 'articles_from_category' It's obvious that rails will load anything that comes after /articles/, even a mess route like /articles/dsfjsdfsd. What i want to do

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:36 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.com wrote: So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the

[Rails] Re: Ruby CAS Server on Heroku

2011-04-19 Thread Christopher Small
In case anyone is wondering, I've now got a version of rubycas-server (the sinatra version) running on heroku. See here - https://github.com/metasoarous/read_only_rubycas_server. It works a bit differently than the old one, but it does work. In particular, whereas the old one is both a gem and

[Rails] Re: Couldn't find Comment without an ID

2011-04-19 Thread Neil Bye
Tim Shaffer wrote in post #993815: What does your model look like? Do you have the appropriate has_many and belongs_to for the subcomments to work? In general, you shouldn't need to specify comment_id for the child when you access it via the has_many relationship. @comment =

[Rails] Re: Using constraints

2011-04-19 Thread Kendall Gifford
On Tuesday, April 19, 2011 12:59:29 PM UTC-6, Ruby-Forum.com User wrote: Hello! Im developing my first rails application =) I have such a code in my routes.rb: match 'category/:category' = articles#index, :as = 'articles_from_category' It's obvious that rails will load anything that comes

[Rails] do a select from another table within a model

2011-04-19 Thread John Merlino
Hey all, This right here: scope :index_blog, { :select = blog_posts.*, :joins = INNER JOIN categories ON category.id = blog_posts.category_id, :conditions =blog_posts.enabled = 1 } returns this: Mysql2::Error: Not unique table/alias: 'categories': SELECT blog_posts.* FROM

[Rails] my app ignore default_locale

2011-04-19 Thread iEmpire
In application.rb i defined: config.i18n.default_locale = :ru But all texts on the site are in English. Typus interface is in English too and when I delete config/locales/en.yml it prints can not load translations from /home/kir/rails/tftc/config/locales/en.yml My server: Apache and Passenger 3.

Re: [Rails] do a select from another table within a model

2011-04-19 Thread Colin Law
On 19 April 2011 21:59, John Merlino li...@ruby-forum.com wrote: Hey all, This right here:  scope :index_blog, {    :select = blog_posts.*,    :joins = INNER JOIN categories ON category.id = blog_posts.category_id,    :conditions =blog_posts.enabled = 1  } returns this:

[Rails] Re: Couldn't find Comment without an ID

2011-04-19 Thread Frederick Cheung
On Apr 19, 8:39 pm, Neil Bye li...@ruby-forum.com wrote: Tim Shaffer wrote in post #993815: Is that correct. Both of your examples throw up 'Couldn't find Comment without an ID' sounds to me like params[:id] isn't set. Fred Am I missing smething vital -- Posted

[Rails] Re: do a select from another table within a model

2011-04-19 Thread Frederick Cheung
On Apr 19, 9:59 pm, John Merlino li...@ruby-forum.com wrote: Hey all, This right here:   scope :index_blog, {     :select = blog_posts.*,     :joins = INNER JOIN categories ON category.id = blog_posts.category_id,     :conditions =blog_posts.enabled = 1   } returns this:

[Rails] Re: do a select from another table within a model

2011-04-19 Thread Kendall Gifford
On Tuesday, April 19, 2011 2:59:57 PM UTC-6, Ruby-Forum.com User wrote: Hey all, This right here: scope :index_blog, { :select = blog_posts.*, :joins = INNER JOIN categories ON category.id = blog_posts.category_id, :conditions =blog_posts.enabled = 1 } First of all,

[Rails] Composite index via command line migration, different behaviour in file

2011-04-19 Thread Federico
Hello everybody, I have a class like this: class Foos ActiveRecord::Migration def self.up create_table :foos,:id = false, do |t| t.references :table1 t.references :table2 t.timestamps end end def self.down drop_table :foos end end I would like to add a

[Rails] Re: how to handle session with external input?

2011-04-19 Thread frankblizzard
Thanks Bryan, sure this wouldn't be a problem. But isn't a session connected to the browser in some way. I think I dont understand the whole session, authenticity, forgery topic in rails yet. You think I can login the user once from the Air app and after the server will accept post requests, or

[Rails] Check that my sqlite database populated

2011-04-19 Thread Federico
Hello guys, I've made a very simple application following the footsteps of http://guides.rubyonrails.org/getting_started.html. I managed to insert my objects (i checked the existence of inserted objects through the rails console with a simple Foo.all ) but if I run sqlite3 from command line and

[Rails] Re: do a select from another table within a model

2011-04-19 Thread John Merlino
Actually, all i wanted to do initially was this: def filter_scoper(scoper) logger.info The current class is #{self.class} #CategoriesController if params.has_key? :filter send :#{params[:filter]}_filter_scoper, scoper elsif self.class.respond_to?(:blog_filter_scoper)

[Rails] Re: do a select from another table within a model

2011-04-19 Thread John Merlino
ok I must never forget that in haml it works like this: - @resources.each do |r| %h1= r.title %p= r.body not this: = @resources.each do |r| %h1- r.title %p- r.body Otherwise, you will get an ActiveRecord array as an object. -- Posted via http://www.ruby-forum.com/. -- You received

Re: [Rails] confirming change of email with devise

2011-04-19 Thread Matt Harrison
On Tue, Apr 19, 2011 at 09:19:11AM -0400, Walter Lee Davis wrote: On Apr 19, 2011, at 12:45 AM, Matt Harrison wrote: To me, it seems that if I go in and fiddle with the controller inside devise, then I'll end up with my own fork essentially and have to maintain that as well as my

[Rails] Re: do a select from another table within a model

2011-04-19 Thread Kendall Gifford
On Tuesday, April 19, 2011 3:55:52 PM UTC-6, Ruby-Forum.com User wrote: Actually, all i wanted to do initially was this: def filter_scoper(scoper) logger.info The current class is #{self.class} #CategoriesController if params.has_key? :filter send

[Rails] Re: Couldn't find Comment without an ID

2011-04-19 Thread Neil Bye
Frederick Cheung wrote in post #993841: On Apr 19, 8:39pm, Neil Bye li...@ruby-forum.com wrote: Tim Shaffer wrote in post #993815: sounds to me like params[:id] isn't set. Fred Not sure what you mean. How would I set params[:id] ? It works if I use params[:user_id] or [:current_user_id]

[Rails] class table inheritance

2011-04-19 Thread mixtli
After having tried pretty much every solution out there for CTI in AR, I'm now trying out the native postgres inheritance support. After a couple of activerecord hacks, I have it mostly working, but am running into some issues. The main problem seems to come when a child model is loaded through

[Rails] Re: do a select from another table within a model

2011-04-19 Thread John Merlino
It would appear to me that your immediate problem is the line of code I pointed out above. Yeah I got it now. Basically: if self.class.respond_to? will only respond to class methods of the class, not instance methods and since attr_accessor returns instance methods, that if will return

[Rails] Re: class table inheritance

2011-04-19 Thread mixtli
This is all with rails 3.0.6 btw -- 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 email to

[Rails] Ruby on Rails Engineer - RoR - Software Engineer

2011-04-19 Thread Eric D.
Ruby on Rails Engineer - RoR - Software Engineer We are looking for smart, motivated and mobile-savvy software engineers to help strengthen, scale and evolve our proprietary messaging platform Desirable Skills * Ruby on Rails, Rails, Back-end development, PHP, Perl, Ruby, Java, HTML, AJAX,

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 2:13 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:36 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.comwrote: So, if anyone has made it this far, I guess my next

[Rails] No route matches / and rake routes empty

2011-04-19 Thread Peter Akkies
Hello, I am upgrading my Rails application from Rails 2 to Rails 3 and I'm having troubles getting routes.rb to work. I get the following error when I visit my application: [code] Routing Error No route matches / [/code] When I run rake routes, the output is blank. What I have already done: -

[Rails] Ruby on Rails - 5 Positions to Fill asap - San Francisco, CA

2011-04-19 Thread Apposite Solutions Inc
1+ year long Contract or Contract to Hire Interviews going on NOW !! Apply ASAP !! Must have 2 years experience on Ruby on Rails development experience – ideally in customer facing internet web applications. Understanding of PHP with MVC frameworks is great plus send response to jobs at

[Rails] rake db:create fails

2011-04-19 Thread Darlan Machado
Hello folks, I´m here trying to find the way to solve my problem. When i try to run rake db:create or rake db:create:all the process stops and the databases are not created. I change the directives, putting --trace before the rake db:create and the steps are C:\appws\cookbookrake db:create

[Rails] Show more feature in Rails app

2011-04-19 Thread daze
You know the very common Older posts/Show more link at the bottom of your Facebook news feed? You know, it functions as a way to show more posts or whatever... it generates more content and allows you to scroll down more. I'm kind of surprised there isn't a nice gem that creates that

[Rails] Re: my app ignore default_locale

2011-04-19 Thread iEmpire
If I run the app via `rails server` everything is ok... On Apr 19, 10:20 pm, iEmpire razor@gmail.com wrote: In application.rb i defined: config.i18n.default_locale = :ru But all texts on the site are in English. Typus interface is in English too and when I delete config/locales/en.yml it

[Rails] How can I remove bundler from my rails 3 app?

2011-04-19 Thread MJW2529
I'm using jruby 1.6.0 and trying to deploy my rails 3 app to Tomcat. When the app loads I get the error stack level too deep as bundler is trying to resolve dependencies. I've spent hours searching forums in an effort to resolve this but there doesn't seem to be a resolution to this problem. Can

[Rails] Transaction ID

2011-04-19 Thread News Aanad
Hi, I am using Paypal Gateway in Activemerchant and I want to implement credit() of Paypal Gateway/PaypalExpress Gateway I want to get Transaction ID after authorization. How can I get it??? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.