[Rails] Re: how to disable the browser back button in javascript.

2015-04-23 Thread Si Tanguy
You can't, and you shouldn't. every other approach / alternative will only cause really bad user engagement. Put This script on head of your page and change 'pagename' to your page name. but anyway , here is a trick : script type = text/javascript history.pushState(null, null,

Re: [Rails] Unable Send Email through SMTP

2015-04-23 Thread Paul Makepeace
Whom are you sending email to? Because which service you connect to, and how, affects how Gmail restricts the recipients. Make sure you're lined up fully with, https://support.google.com/a/answer/176600?hl=en Specifically you may need to be using, smtp-relay.gmail.com HTH, Paul On Thu, Apr 23,

Re: [Rails] Error start server webrick on win 7

2015-04-23 Thread Antônio Augusto Sousa Britto
here is your error: `require': cannot load such file -- mysql2/2.2/mysql2 (LoadError) good luck. Att, [image: --] Antonio Augusto [image: http://]about.me/aaugusto http://about.me/aaugusto?promo=email_sig https://www.facebook.com/augustobr https://twitter.com/xtrdev

[Rails] Error start server webrick on win 7

2015-04-23 Thread Dimitri Borowski
Hi I cant run server webrick. See, please error below. I installed gem mysql2 and server mysql on windows. How solve this problem? E:\ROR\Projects\firstrubyrails s C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x86-mingw32/lib/mysql2/mysql2.r b:2:in `require': cannot load such file --

[Rails] Re: Error start server webrick on win 7

2015-04-23 Thread Dimitri Borowski
I undestand this. I see. But how solve? -- 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] Debian Jessie Vagrant box with RVM

2015-04-23 Thread Jason Hsu, Rubyist
Debian Jessie is about to become the new Debian Stable. I have released my new Debian Jessie Vagrant box at https://github.com/jhsu802701/vagrant-debian-jessie-rvm as a replacement for the old Debian Wheezy Vagrant box. The old Debian Wheezy Vagrant box is still available, but I will not be

Re: [Rails] Re: Error start server webrick on win 7

2015-04-23 Thread Antônio Augusto Sousa Britto
well, I don't know, but I'd check your Gemfile, your PATH, and if bundle install recoginzes your gem correctly. After I'd check if your mysql server is actually running, and your database config is correct. Att, [image: --] Antonio Augusto [image: http://]about.me/aaugusto

[Rails] Simpler asset pipeline for rails 5

2015-04-23 Thread Bráulio Bhavamitra
Hello all, I've just missed an idea for Rails 5. After using angular js + ionic for a while, gulp was pretty easy for asset pipeline tasks. Then I remembered all the pain to precompile and configure a complex asset pipeline with Rails, so I guess it is time for a simpler and more configurable

Re: [Rails] Re: Solve my problem, please

2015-04-23 Thread Norbert Melzer
Am 23.04.2015 14:46 schrieb Andika Andika Nugraha li...@ruby-forum.com: I 've run RoR in linux , but still there is a problem when I made the server , you may be able to help . Thank you. andika@andika-HP:~/andikanug$ rails s Warning: Running `gem pristine --all` to regenerate your installed

Re: [Rails] Help getting started

2015-04-23 Thread Colin Law
On 21 April 2015 at 03:39, TC R. li...@ruby-forum.com wrote: Running windows 8. ... c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:111:14: error: size of array 'ruby_check_sizeof_voidp' is negative I always recommend not using Windows for Rails, use Mac or Linux (eg Ubuntu) instead.

Re: [Rails] Re: Accessing attributes of one table from different model (which is related to another table)

2015-04-23 Thread Colin Law
On 23 April 2015 at 04:47, Padmahas Bn padma...@gmail.com wrote: Member.where(status: active) will give you the members, then you can use each to get member.member_code Hello Colin thank you very much. I was able to access member and loan table from recovery model. In rails guides i'm not

[Rails] Unable Send Email through SMTP

2015-04-23 Thread Annapoorna R
Hello All, i have this configuration in development.rb config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: smtp.gmail.com, port: 587, domain: gmail.com, authentication: plain, enable_starttls_auto: true, user_name: emailid, password:

[Rails] Re: Accessing attributes of one table from different model (which is related to another table)

2015-04-23 Thread JEENA JACOB
view.html.erb %=button_to( start recovery process, new_editor_path, :method = :get )% class WelcomeController ApplicationController def index

[Rails] Re: Solve my problem, please

2015-04-23 Thread Andika Andika Nugraha
I 've run RoR in linux , but still there is a problem when I made the server , you may be able to help . Thank you. andika@andika-HP:~/andikanug$ rails s Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle

[Rails] ROR for linux , I got a problem when creating a server

2015-04-23 Thread Andika Andika Nugraha
how do I fix this problem ? andika@andika-HP:~/andikanug$ rails s Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.

Re: [Rails] how to disable the browser back button in javascript.

2015-04-23 Thread Norbert Melzer
Dont! Am 23.04.2015 15:17 schrieb usha rani usharani.chi...@gmail.com: how to disable the browser back button in javascript. -- 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

[Rails] how to disable the browser back button in javascript.

2015-04-23 Thread usha rani
how to disable the browser back button in javascript. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To

Re: [Rails] ROR for linux , I got a problem when creating a server

2015-04-23 Thread Colin Law
On 23 April 2015 at 13:52, Andika Andika Nugraha li...@ruby-forum.com wrote: Could not find a JavaScript runtime Either install nodejs sudo apt-get install nodejs or include in Gemfile gem 'execjs' gem 'therubyracer' Colin -- You received this message because you are subscribed to the Google

[Rails] Re: Looking to partner up with a Ruby developer on a new and exciting project.

2015-04-23 Thread Kriti Aggarwal
Hi Sean, I am interested in working on this idea. I am currently working in Adobe systems, India as a security tools developer and I have majorly worked in development in rails. So, initially I would like to work on the idea on part time basis. Please let me know if we can setup a short

Re: [Rails] ROR for linux , I got a problem when creating a server

2015-04-23 Thread Colin Law
On 23 April 2015 at 14:36, Colin Law clan...@gmail.com wrote: On 23 April 2015 at 13:52, Andika Andika Nugraha li...@ruby-forum.com wrote: Could not find a JavaScript runtime Either install nodejs sudo apt-get install nodejs or include in Gemfile gem 'execjs' gem 'therubyracer' Colin

Re: [Rails] ROR for linux , I got a problem when creating a server

2015-04-23 Thread Vladimir Gordeev
Andika, that is for you: http://www.catb.org/esr/faqs/smart-questions.html On Thu, Apr 23, 2015 at 2:52 PM, Andika Andika Nugraha li...@ruby-forum.com wrote: how do I fix this problem ? andika@andika-HP:~/andikanug$ rails s Warning: Running `gem pristine --all` to regenerate your installed

Re: [Rails] Error start server webrick on win 7

2015-04-23 Thread Vladimir Gordeev
Hacking on windows is such a pain. (Trying to learn to hack on a Microsoft Windows machine or under any other closed-source system is like trying to learn to dance while wearing a body cast.) Even worse -- most subscribers use Linux or Mac, so probably not too many here are familiar with your

[Rails] Updated Rails site: Lose Money Fast

2015-04-23 Thread Jason Hsu, Rubyist
Check out my new and improved version of my Rails site Lose Money Fast at https://losemoneyfast.herokuapp https://losemoneyfast.herokuapp.com/­ . You can buy thousands of fictional Mega Millions and Powerball tickets every virtual week. You never run out of money, but your return on