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

2013-07-09 Thread Silviu Constantin Voicu
Hello, I new to ruby on rails, I have like this on my laptop with ubuntu 13.04: ruby -v; ruby 1.9.3p429 (2013-05-15) [x86_64-linux] Brightbox gem -v; 1.8.25 bundle -v; Bundler version 1.3.5 And the Gem file: source 'https://rubygems.org' gem 'rails', '3.2.13' # Bundle edge Rails instead:

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

2013-07-09 Thread William Herry
http://stackoverflow.com/questions/17505792/keep-getting-application-error-on-heroku try add `gem 'bcrypt-ruby', '~ 3.0.0'` to your Gemfile On Tue, Jul 9, 2013 at 12:42 AM, Silviu Constantin Voicu svoicu...@gmail.com wrote: Hello, I new to ruby on rails, I have like this on my laptop with

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

2013-07-09 Thread mack gille
Hi, I need to upload files in my rails application.the type of the files should be pdf,xls,word.After that i need to download them from the view page.plz help me in this regard. Thankyou -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

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

2013-07-09 Thread William Herry
On Tue, Jul 9, 2013 at 4:54 PM, mack gille li...@ruby-forum.com wrote: Hi, I need to upload files in my rails application.the type of the files should be pdf,xls,word.After that i need to download them from the view page.plz help me in this regard. Thankyou You should look at

[Rails] can i use single devise for multiple models.

2013-07-09 Thread mack gille
Hi, i need to use authentication for the 4 models,is it possible to use single devise for all models,if yes plz let me know them clearly. if not what is the solution. Thankyou -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] can i use single devise for multiple models.

2013-07-09 Thread Tamara Temple
On Jul 9, 2013, at 2:31 AM, mack gille li...@ruby-forum.com wrote: i need to use authentication for the 4 models,is it possible to use single devise for all models,if yes plz let me know them clearly. if not what is the solution. Maybe you could direct your question to the devise mailing list

[Rails] routes for devise in rails4

2013-07-09 Thread Thomas Chik
How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights. -- 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

[Rails] Re: routes for devise in rails4

2013-07-09 Thread mack gille
Thomas Chik wrote in post #1114847: How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights. ya,but my sign in page should has the fields like username: password: rememberme signin so how can -- Posted

[Rails] Rails Wiki solution on Windows?

2013-07-09 Thread Joel Pearson
I've been asked to put together a simple intranet Wiki, but the only server I have available is a Windows 7 machine with Rails ( on Ruby 2.0 ) installed. I've been looking around for options which will work on this platform - I tried Instiki and Refinery CMS but neither of them appear to be

[Rails] ajax form submission

2013-07-09 Thread mack gille
hi, i have popup input field that is address when i enter address and submit a button then it need to save with out refreshing the page. it may use javascript or ajax.how can i store the address field in my table without refreshing the page. please clarify me. thankyou -- Posted via

[Rails] Re: ajax form submission

2013-07-09 Thread Joel Pearson
This should help: http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html -- 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

[Rails] Re: routes for devise in rails4

2013-07-09 Thread mack gille
mack gille wrote in post #1114848: Thomas Chik wrote in post #1114847: How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights. ya,but my sign in page should has the fields like username: password: rememberme

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

2013-07-09 Thread mack gille
Robert Walker wrote in post #1114535: ram kris wrote in post #1114502: how to use single login page for users in four models You have not given enough detail in your question to know what you're asking. Are you saying that you have four different types of users? If so then why do you have

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

2013-07-09 Thread mack gille
Robert Walker wrote in post #1114535: ram kris wrote in post #1114502: how to use single login page for users in four models You have not given enough detail in your question to know what you're asking. Are you saying that you have four different types of users? If so then why do you have

[Rails] whenever gem

2013-07-09 Thread Avi
Hello All, I want to schedule a mail every day. I used whenever gem. I added gem 'whenever' in my gemfile. Then in the terminal I did - whenever . which created a schedule.rb. In schedule.rd I added this piece of code:- set :environment, development every 2.minutes do runner

Re: [Rails] whenever gem

2013-07-09 Thread rubyonrai...@gmail.com
use whenever -w to write into system crontab ; to check if write successfully try crontab -l whenever -c to clear -- rubyonrai...@gmail.com Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, July 9, 2013 at 9:28 PM, Avi wrote: -- You received this message because you

Re: [Rails] Rspec devise, testing extended RegistrationController action destroy

2013-07-09 Thread andreo
Colin, Thanks very much, I should have done that and understood right away why it was not working. I forgot I had to login the user and that was the difference between the new and create actions to the update and destroy for the registrations controller on devise! sometimes you just need

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

2013-07-09 Thread Walter Lee Davis
On Jul 9, 2013, at 9:17 AM, mack gille wrote: Robert Walker wrote in post #1114535: ram kris wrote in post #1114502: how to use single login page for users in four models You have not given enough detail in your question to know what you're asking. Are you saying that you have four

Re: [Rails] whenever gem

2013-07-09 Thread rubyonrai...@gmail.com
How about write out to some file as you might can not see these PUTS -- rubyonrai...@gmail.com Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, July 9, 2013 at 10:08 PM, avinash behera wrote: I tried with these commands. It is fine. But the schedule.rb is not being

Re: [Rails] whenever gem

2013-07-09 Thread avinash behera
I tried with these commands. It is fine. But the schedule.rb is not being invoked. I tried with some puts inside the method, but it is not getting invoked. result of whenever -w - [write] crontab file written result of crontab -l :- # Begin Whenever generated tasks for: the complete

[Rails] how to share image in facebook ?

2013-07-09 Thread Fahim Patel
Hi all, Really facing issue to share image. Wen I click on share image then on thumbnail list of images don't have my image. Thanks Best Regards Fahim Babar Patel -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this

Re: [Rails] how to share image in facebook ?

2013-07-09 Thread Jordon Bedwell
On Tue, Jul 9, 2013 at 10:42 AM, Fahim Patel pafa...@gmail.com wrote: Really facing issue to share image. Wen I click on share image then on thumbnail list of images don't have my image. How about some code to look at? Better diagnostic descriptions? A log? Something? The statement I quoted is

Re: [Rails] Re: Devise routes

2013-07-09 Thread Colin Law
On 9 July 2013 06:42, mack gille li...@ruby-forum.com 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 models, I believe that it is generally best not to have separate models. Just have

Re: [Rails] can i use single devise for multiple models.

2013-07-09 Thread Colin Law
On 9 July 2013 10:31, mack gille li...@ruby-forum.com wrote: Hi, i need to use authentication for the 4 models,is it possible to use single devise for all models,if yes plz let me know them clearly. if not what is the solution. As I suggested in a separate thread, I advise just having a

Re: [Rails] Rails Wiki solution on Windows?

2013-07-09 Thread Colin Law
On 9 July 2013 11:46, Joel Pearson li...@ruby-forum.com wrote: I've been asked to put together a simple intranet Wiki, but the only server I have available is a Windows 7 machine with Rails ( on Ruby 2.0 ) installed. I've been looking around for options which will work on this platform - I

Re: [Rails] Rspec devise, testing extended RegistrationController action destroy

2013-07-09 Thread Colin Law
On 9 July 2013 14:48, and...@benjamin.dk wrote: Colin, Thanks very much, I should have done that and understood right away why it was not working. I forgot I had to login the user and that was the difference between the new and create actions to the update and destroy for the registrations

[Rails] Re: Rails Wiki solution on Windows?

2013-07-09 Thread Joel Pearson
Useful link, thanks. I was hoping for a Rails option because I haven't yet found another web host which will work on a Windows 7 PC without a fuss. I've tried Wordpress and Joomla, but Microsoft's WebMatrix refuses to work without an actual Internet server, and I only want a local Intranet

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

2013-07-09 Thread Max
paperclip is a great way to upload the files. downloading the files shouldn't be too difficult although the details can be specific to where you have your site deployed and how the file system is managed by the upload choices. on one site i have some static files that the users need to

Re: [Rails] Re: Rails Wiki solution on Windows?

2013-07-09 Thread Johnneylee Rollins
Are you sure you need to code? I may be wrong, but it sounds like someone wants a wiki. I'd use a local apache install with php set up on that to host one of the wiki solutions they have. ~Spaceghost On Jul 9, 2013 5:46 PM, Joel Pearson li...@ruby-forum.com wrote: Useful link, thanks. I was

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

2013-07-09 Thread Jason Hsu, Android developer
I recently launched the new Rails-based version of Doppler Value Investing (http://www.dopplervalueinvesting.com). It profiles over 4000 individual stocks in terms of free cash flow and net liquid assets. As you can see at http://dopplervalueinvesting.com/stocksview, I know how to extract

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

2013-07-09 Thread Tamara Temple
On Jul 9, 2013, at 6:14 AM, mack gille li...@ruby-forum.com wrote: Robert Walker wrote in post #1114535: ram kris wrote in post #1114502: how to use single login page for users in four models You have not given enough detail in your question to know what you're asking. Are you saying

Re: [Rails] Rails Wiki solution on Windows?

2013-07-09 Thread Tamara Temple
On Jul 9, 2013, at 2:46 PM, Joel Pearson li...@ruby-forum.com wrote: Useful link, thanks. I was hoping for a Rails option because I haven't yet found another web host which will work on a Windows 7 PC without a fuss. I've tried Wordpress and Joomla, but Microsoft's WebMatrix refuses to