[Rails] Tomcat + Ruby + REST support

2013-07-10 Thread Shubhada S.
Hi, I want to make our application to be supported with REST APIs. We will receive the REST requests to Tomcat application server. And from there we need to forward it to our application in ruby. So I want to understand that what the exact things I will need to have to complete this setup for

[Rails] Re: how to use single login page for users in four models

2013-07-10 Thread mack gille
@ Walter Davis thankyou can you give me the sample code or any link.I did not get any resource plz let me know. Thank you -- 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 unsubscribe from

[Rails] devise can can roles

2013-07-10 Thread mack gille
how to use devise can can using two models having different fields ((users has 6 fields), (admin has 3 fields)).how can i use can can roles using single sign in page.plese tell me the code of them.where to change my code to work with cancan. Thankyou -- Posted via http://www.ruby-forum.com/.

[Rails] Re: how to upload and download files (type of files pdfs, xls, word)

2013-07-10 Thread mack gille
Max @thanks max please can u suggest me any sample code. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Cucumber error: Nokogiri can't activate bcrypt-ruby

2013-07-10 Thread Silviu Constantin Voicu
Well, I reminded my self that I have git copy on the net, then copy my gemfile and gemfile.lock, and it works with bundle exec cucumber. Thank you. luni, 8 iulie 2013, 19:42:44 UTC+3, Silviu Constantin Voicu a scris: Hello, I new to ruby on rails, I have like this on my laptop with ubuntu

[Rails] Re: pro bono rails help for my non-profit

2013-07-10 Thread Neeraj Kapoor
Hey Jay! So sorry for the delay in responding. I thought I would get an email. My email is neeraj.kap...@learntobe.org if you're still available. I'd love to talk more. Thanks so much. Best, Neeraj On Tuesday, July 2, 2013 4:41:04 PM UTC-7, Jay Zheng wrote: what's your contact? On

[Rails] Face Problem to create a new app

2013-07-10 Thread Tushar Patil
I create a new app = rails new demo . create vendor/assets/stylesheets create vendor/assets/stylesheets/.keep run bundle install /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/ui.rb:36:in `initialize': undefined method `[]' for

[Rails] ActionView::Template::Error Not a directory vendor/assets/javascripts/ production

2013-07-10 Thread Silviu Constantin Voicu
Hello, In production environment, I have this error ActionView::Template::Error Not a directory vendor/assets/javascripts/holder.js when in my template I have this line %= image_tag holder.js/150x200 % My production.rb is : Libapp::Application.configure do # Settings specified here will

[Rails] Rails Wiki solution on Windows?

2013-07-10 Thread Dave Kimura
You can look into Bitnami which has turnkey installers for wikis. Its really easy to configure and not invasive on your system. MediaWiki is one of the most popular ones that ive found and closest to wikipedia. -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] whenever gem

2013-07-10 Thread avinash behera
I tried with that... But i am getting error - (CRON) info (No MTA installed, discarding output) any pointers ? On Tue, Jul 9, 2013 at 7:44 PM, rubyonrai...@gmail.com rubyonrai...@gmail.com wrote: How about write out to some file as you might can not see these PUTS -- rubyonrai...@gmail.com

[Rails] Re: Rails Wiki solution on Windows?

2013-07-10 Thread Joel Pearson
Thanks all. MediaWiki is the one I'm planning to use at the moment. Looks like it's time to learn how Apache PHP work :) -- 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 unsubscribe from this

[Rails] how to upload multiple images in rails

2013-07-10 Thread mack gille
hi.. I need to upload multiple images at a time.how can i upload let me know plz. -- 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 unsubscribe from this group and stop receiving emails from

Re: [Rails] Re: Devise routes

2013-07-10 Thread mike
On Tuesday, July 9, 2013 4:18:23 PM UTC-4, Colin Law wrote: On 9 July 2013 06:42, mack gille li...@ruby-forum.com javascript: wrote: yes mike,but when we need to authenticate the devise models,how to write the scope for two devises in routes. means if user and admin are two devise

Re: [Rails] How do I allow users to search a database table?

2013-07-10 Thread Walter Lee Davis
You might want to look at one or another of the search helper gems. This one is nice: https://www.ruby-toolbox.com/projects/meta_search Basically, any of these will extend ActiveRecord to give your views the ability to construct custom search queries. This can be used to make really detailed

Re: [Rails] how to use single login page for users in four models

2013-07-10 Thread Walter Lee Davis
On Jul 10, 2013, at 2:06 AM, mack gille wrote: @ Walter Davis thankyou can you give me the sample code or any link.I did not get any resource plz let me know. Thank you Here. Watch some movies. http://railscasts.com/episodes?utf8=âś“search=cancan Walter -- Posted via

Re: [Rails] how to upload multiple images in rails

2013-07-10 Thread Walter Lee Davis
Please, for your own sake, take an hour and read this entirely: http://www.catb.org/esr/faqs/smart-questions.html I can only speak for myself, but while I know the answer to your question, I cannot in good conscience answer you at this time because you have failed to make even the slightest

Re: [Rails] Tomcat + Ruby + REST support

2013-07-10 Thread Hassan Schroeder
On Tue, Jul 9, 2013 at 11:06 PM, Shubhada S. li...@ruby-forum.com wrote: I want to make our application to be supported with REST APIs. We will receive the REST requests to Tomcat application server. And from there we need to forward it to our application in ruby. So I want to understand

[Rails] Re: `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for

2013-07-10 Thread Buminda N.
unknown wrote in post #1096534: sudo apt-get install nodejs worked for me Thanks , this worked for me and rails server is now up and running. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for

2013-07-10 Thread Buminda N.
unknown wrote in post #1096534: sudo apt-get install nodejs worked for me Thanks , this worked for me and rails server is now up and running. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Does each ip request to a ruby on rails application on a server spawn a new ruby process?

2013-07-10 Thread John Merlino
When I view the output of the top command on ubuntu, I notice sometimes there is 6 ruby processes. When are each of these processes spawned? http://tinypic.com/view.php?pic=2i24rwhs=5 I cannot imagine that it's every time someone loads the rails application from a different ip address,

Re: [Rails] whenever gem

2013-07-10 Thread Tamara Temple
On Jul 10, 2013, at 5:04 AM, avinash behera aavinash.beh...@gmail.com wrote: I tried with that... But i am getting error - (CRON) info (No MTA installed, discarding output) any pointers ? This is because the normal behavior for cron is to send the combined STDOUT and STDERR to the owner of

Re: [Rails] Does each ip request to a ruby on rails application on a server spawn a new ruby process?

2013-07-10 Thread Tamara Temple
On Jul 10, 2013, at 9:35 AM, John Merlino stoici...@aol.com wrote: When I view the output of the top command on ubuntu, I notice sometimes there is 6 ruby processes. When are each of these processes spawned? http://tinypic.com/view.php?pic=2i24rwhs=5 I cannot imagine that it's every

[Rails] Re: Face Problem to create a new app

2013-07-10 Thread Robert Walker
Tushar Patil wrote in post #1115001: I create a new app = rails new demo I have a rails3 ruby 1.9.1 After that i try to install bundle, but it will give a error I thought Ruby 1.9.1 was completely broken when trying to run Rails. Try Ruby 1.9.3. Bundler could not find compatible versions

[Rails] Do I Edit the Migration Too to Show the Belongs To

2013-07-10 Thread Peter
Hi Everyone, Do I edit the corresponding migration also to show the belongs_to (and the has_many)? I have a many to many relationship where I am using the has_many :through association. When I place in the individual classes the 'has_many :through' and the 'belongs_to' associations, do I also