[Rails] Secure Subdomain

2011-09-21 Thread Hesham
I have a rails 3.1 app running on Heroku and am about to add user authentication. I have also attached a ssl cert and plan on using secure.mydomain.com for registration and sign in. I know that I can force a model to use ssl easily in 3.1. But how to I make sure that the generated route paths

Re: [Rails] AR type mismatch problem

2011-09-21 Thread Peter Vandenabeele
On Wed, Sep 21, 2011 at 12:29 AM, elliottg x...@simplecircle.net wrote: I am getting this error when trying to assign a Cart instance to a parent.cart has_one assoc. ActiveRecord::AssociationTypeMismatch in CustomerOrdersController#create Cart(#2188120600) expected, got Cart(#2198420140)

[Rails] Popup window in Rails 3.1

2011-09-21 Thread Anna V.
Hi, I need to open a popup window with a form and submit button, while the background will be gray and disabled the parent window. I found the Facebox and the FaceboxRender solutions, but they didn't work for me. I get a routing Error: uninitialized constant ApplicationController::FaceboxRender I

[Rails] Re: Active Admin

2011-09-21 Thread Robert Walker
Tsolmon Narantsogt wrote in post #1023066: Can i use Active Admin on Rails 2.3.5 ? http://activeadmin.info/ The project's README appears to contain your answer: Getting Started Active Admin is released as a Ruby Gem. The gem is to be installed within a Ruby on Rails 3 application. To

[Rails] Re: Rails and CKEditor

2011-09-21 Thread Keith Raymond
Thanks for the replies! I looked into the el_finder, but this is using jQuery and I'm building this out in prototype. If I use that gem would that add any real bloat to my application? I have always been weary of having too many calls to javascript files and having two libraries loading

[Rails] bundle install rmagick error in unix

2011-09-21 Thread Sandeep Campbell
I have Rails 3 and Ruby 1.9.2 Installing rmagick (2.13.1) with native extensions /opt/local/lib/ruby/site_ruby/1.9/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /opt/local/bin/ruby19

Re: [Rails] bundle install rmagick error in unix

2011-09-21 Thread Tom Meinlschmidt
http://rmagick.rubyforge.org/install2-linux.html On Sep 21, 2011, at 15:33 , Sandeep Campbell wrote: I have Rails 3 and Ruby 1.9.2 Installing rmagick (2.13.1) with native extensions /opt/local/lib/ruby/site_ruby/1.9/rubygems/installer.rb:551:in `rescue in block in build_extensions':

[Rails] Re: AR type mismatch problem

2011-09-21 Thread elliottg
Thanks for the feedback. Both Carts are definitely the same Class (no modules are at play). Everything works perfectly in the console. It blows up when the app runs as Dev. After I reboot the local server the first time the request is passed I do NOT have the mismatch error. All subsequent calls

[Rails] Re: AR type mismatch problem

2011-09-21 Thread Matt Jones
On Sep 21, 9:52 am, elliottg x...@simplecircle.net wrote: Thanks for the feedback. Both Carts are definitely the same Class (no modules are at play). Everything works perfectly in the console. It blows up when the app runs as Dev. After I reboot the local server the first time the request

[Rails] Re: Search Gems

2011-09-21 Thread Matt Jones
On Sep 20, 8:47 am, Russell Cole russell.c...@sas.com wrote: Greetings, Which gems are good for searching textual data?  I had a look into searchlogic but it appears to just dynamically create SQL LIKE statements, I'd like something that provides better/more relevant results to the user.

Re: [Rails] bundle install rmagick error in unix

2011-09-21 Thread Everaldo Gomes
Hi! Sunday I got this error. I typed the following commands, after a search in google: sudo apt-get install imagemagick libmagickcore-dev sudo apt-get install libmagickwand-dev (Then, gem install rmagick) Referente: http://superuser.com/questions/163818/how-to-install-rmagick-on-ubuntu-10-04 I

Re: [Rails] Re: AR type mismatch problem

2011-09-21 Thread Rob Biedenharn
On Sep 21, 2011, at 10:07 AM, Matt Jones wrote: On Sep 21, 9:52 am, elliottg x...@simplecircle.net wrote: Thanks for the feedback. Both Carts are definitely the same Class (no modules are at play). Everything works perfectly in the console. It blows up when the app runs as Dev. After I reboot

[Rails] problem with jquery validation in rails

2011-09-21 Thread Pab
Hi, i am using jquery validation, i used following code $(#btn1).click(function(){ alert(click); $(#validating).valid({ rules: { product_no:{ required: true } }, messages: { product_no:{ required: Required }

[Rails] Re: bundle install rmagick error in unix

2011-09-21 Thread Sandeep Campbell
Thanks, But my system configuration is SunOS gqwnkyac.joyent.us 5.11 snv_89 i86pc i386 i86pc Solaris and i am unable to find any package libmagickcore-dev or libmagickwand-dev. could you please suggest how to install libmagickcore-dev or libmagickwand-dev package Everaldo Gomes wrote in post

[Rails] problem with submit button in rails 3

2011-09-21 Thread Pab
hi, i am using %= s.submit 'Product save' % when i click it, following error appears Routing Error uninitialized constant ProductsController could any one provide me solution ? thanks, -pab -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] Re: bundle install rmagick error in unix

2011-09-21 Thread Everaldo Gomes
P.S: Remember to download dependencies and install using dpkg -i packages.deb http://packages.ubuntu.com/natty/libmagickcore-dev http://packages.ubuntu.com/natty/libmagickwand-dev On Wed, Sep 21, 2011 at 11:48 AM, Everaldo Gomes everaldo.go...@gmail.comwrote: Hi! If you have dpkg installed

Re: [Rails] Re: bundle install rmagick error in unix

2011-09-21 Thread Everaldo Gomes
Hi! If you have dpkg installed in your system, maybe you could try manually downloading and installing the packages from http://packages.ubuntu.com/ Best Regards, Everaldo On Wed, Sep 21, 2011 at 11:45 AM, Sandeep Campbell li...@ruby-forum.comwrote: Thanks, But my system configuration is

[Rails] Re: problem with submit button in rails 3

2011-09-21 Thread Tim Shaffer
Do you have a controller named ProductsController? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/sUuMsWHWdxoJ. To post to this group, send email

[Rails] Re: problem with submit button in rails 3

2011-09-21 Thread Pab
hi well i am have having contoller named ProductController but its asking for ProductsController i don't know how to over come this problem? thanks, -pab -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: problem with submit button in rails 3

2011-09-21 Thread Tim Shaffer
It's Rails convention that controllers should use the plural name of the model, like Product*s*Controller You could probably make it work by using the singular name of the model, but it would go against convention and wouldn't be very easy to maintain. -- You received this message because you

Re: [Rails] Re: problem with submit button in rails 3

2011-09-21 Thread Everaldo Gomes
On Wed, Sep 21, 2011 at 12:29 PM, Pab prabu.ne...@gmail.com wrote: hi well i am have having contoller named ProductController but its asking for ProductsController i don't know how to over come this problem? Hi, rename your controller from ProductController to ProductsController. In

Re: [Rails] Re: problem with submit button in rails 3

2011-09-21 Thread Colin Law
On 21 September 2011 16:35, Everaldo Gomes everaldo.go...@gmail.com wrote: On Wed, Sep 21, 2011 at 12:29 PM, Pab prabu.ne...@gmail.com wrote: hi   well i am have having contoller named ProductController but its asking for ProductsController i don't know how to over come this problem? Hi,

[Rails] Ruby on Rails Developers needed in Greenwich CT

2011-09-21 Thread Sue M.
High tech health care firm is seeking an experienced Ruby on Rails developer to design and develop custom enterprise application software. Responsibilities: • Work collaboratively as part of a 7 person Ruby on Rails team to architect, design and develop custom solutions and applications •

[Rails] Re: retrieve app from github?

2011-09-21 Thread 7stud --
Thanks! -- 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 email to

[Rails] custom action in Rails 3

2011-09-21 Thread Ichiro Saga
Hi, everyone. I'm working on a program in Rails 3.0.10 and it has a custom action, run_files, that extracts data in files and saves it in database. When I clicked the link on the page, it returned an error page: ActiveRecord::RecordNotFound in ReportsController#show Couldn't find Report

[Rails] Re: custom action in Rails 3

2011-09-21 Thread Tim Shaffer
You have the route specified to only accept POST requests, but by using link_to, you're creating a hyperlink that generates a GET request. You'll need to either change your routes to accept a GET request, or change your method of calling the URL to a POST request (from a form). -- You

[Rails] Re: AR type mismatch problem

2011-09-21 Thread elliottg
Thanks for the inout guys. Sessions are at play, but I'm only storing the Cart's id. I'll try the config.cache_classes setting and get back to you. EG -- 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

[Rails] Re: AR type mismatch problem

2011-09-21 Thread elliottg
config.cache_classes = true worked. But that opens up a whole new issue right? IE reboot server after each model edit?! Thoughts? PS thanks for the help so far. EG On Sep 21, 4:14 pm, elliottg x...@simplecircle.net wrote: Thanks for the inout guys. Sessions are at play, but I'm only storing

[Rails] Re: Secure Subdomain

2011-09-21 Thread Robert Walker
Hesham Amiri wrote in post #1023058: I have a rails 3.1 app running on Heroku and am about to add user authentication. I have also attached a ssl cert and plan on using secure.mydomain.com for registration and sign in. I know that I can force a model to use ssl easily in 3.1. But how to I

[Rails] Re: custom action in Rails 3

2011-09-21 Thread Ichiro Saga
Tim Shaffer wrote in post #1023170: You have the route specified to only accept POST requests, but by using link_to, you're creating a hyperlink that generates a GET request. You'll need to either change your routes to accept a GET request, or change your method of calling the URL to a POST

[Rails] rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

2011-09-21 Thread David A.
I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require 'zip/zip' fails with 'no such file to load -- zip/zip gem list --local shows rubyzip (0.9.4) I see zip.rb in d:\ruby192\lib\ruby\gems\1.9.1\gems\rubyzip-0.9.4\lib\zip\ -- Posted

[Rails] Beginner issue - databases reference

2011-09-21 Thread Justin D.
Hi, I have teo databases. One is called products, the other categories. Basically, I have products and they are linked to a category. Scheme : products : name:string category:references (?) comments:text categories : name:string place_to_recycle_product:string comments:text I don't know how

Re: [Rails] Beginner issue - databases reference

2011-09-21 Thread Hassan Schroeder
On Wed, Sep 21, 2011 at 3:39 PM, Justin D. li...@ruby-forum.com wrote: I don't know how to link the two databases and what command I need to use to generate the scheme... Could you help me? Does this actually have anything to do with Rails? If so, have you gone through any tutorials,

Re: [Rails] Re: couldn't find file 'jquery' rails 3.1 stable mountable engine

2011-09-21 Thread Santiago Pastorino
Fixed here https://github.com/rails/rails/commit/007f56701102647088673d92b165c3d862fbba22 On Sun, Sep 18, 2011 at 1:22 PM, Kris kris.le...@gmail.com wrote: The solution for me was to add jquery-rails to my engines Gemfile and restart the server. I would suspect that it does not want adding

[Rails] Re: System-wide db-driven config

2011-09-21 Thread pepe
I use a DB table but store one value per setting. Then in my code I just access whichever record I need to gain access to the value. This gives me great flexibility to maintain the setting values. Then I access the table only when needed. It might not be as fast as having all values retrieved at

[Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-21 Thread pepe
Me, I'm betting on the mammals. -- Hassan Schroeder hassan.schroe...@gmail.comhttp://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-21 Thread pepe
Me, I'm betting on the mammals. Good one! :D -- 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] Re: Beginner issue - databases reference

2011-09-21 Thread Justin D.
Well... I've read some tutorials and basically, what I had to do was to create a database with the command scaffold. I had to choose :references as the type of one of my table entry... But the thing is I can't figure which entry to reference to... -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-21 Thread Marc Byrd
Larger companies are reluctant to invest in a technology until it has demonstrated some level of stability from a specification and tools point of view. In this light, breakages in backward compatibility may cause a technology to acquire a bad reputation that in turn impedes its adoption. m On

Re: [Rails] Re: Beginner issue - databases reference

2011-09-21 Thread Hassan Schroeder
On Wed, Sep 21, 2011 at 6:21 PM, Justin D. li...@ruby-forum.com wrote: Well... I've read some tutorials and basically, what I had to do was to create a database with the command scaffold. Sorry, that doesn't make any sense to me. You might want to step back and document exactly what you're

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-21 Thread Hassan Schroeder
On Wed, Sep 21, 2011 at 6:29 PM, Marc Byrd dr.marc.b...@gmail.com wrote: Larger companies are reluctant to invest in a technology until it has demonstrated some level of stability yep, because for Big Companies, stability is Job 1. OTOH, smaller (== small-a-'agile') companies are eager to

[Rails] Model that belongs to Person or Company

2011-09-21 Thread Rodrigo Ruiz
Hi, I gotta make a model (telefone) that belongs to a person or to a company, how do I do that? Thank you, Rodrigo -- 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 and UJS guide - not having much luck

2011-09-21 Thread K.M.
anyone? thank you -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. For

Re: [Rails] Model that belongs to Person or Company

2011-09-21 Thread Rob Biedenharn
On Sep 21, 2011, at 9:52 PM, Rodrigo Ruiz wrote: Hi, I gotta make a model (telefone) that belongs to a person or to a company, how do I do that? Thank you, Rodrigo You probably want a polymophic association: class Telefone ActiveRecord::Base belongs_to :owner, :polymorphic = true end