Re: [Rails] Re: .exe creation

2013-10-21 Thread Drfrog
you can't create exe for Ubuntu exe are windows ONLY you may want to look at deb pkg creation or maybe a ruby gem depending on your needs Cphone On 2013-10-20, at 22:32, rohini kambde li...@ruby-forum.com wrote: Thank you for reply folks . why i want to have a standalone rails

[Rails] Re: .exe creation

2013-10-21 Thread rohini kambde
Okay ,so we should try creating a .exe in windows only i guess. then would you please provide me the right way of steps to be followed to create .exe in windows . or suggest me how to create a executable for my application in Ubuntu.? -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: grouped_collection_select collection filter

2013-10-21 Thread Kang Cao
if you want choose states depending countries, you have to use the ajax way. That is when rails renders the page, it doesn't know which country you will choose. Thus you have to write javascript code to watch the country field, when it changes, the code sends messages to server and use

[Rails] Looking for RoR friends

2013-10-21 Thread Srivigneshwar Rabindranath Prasad
This is quiet off topic but I am looking for friends from this group. Reply me :) -- 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] cannot load such file -- unicode (LoadError)

2013-10-21 Thread RailsNewBie
I'm new to RoR and working on a migration of project developed by another team. I'm using Rails version (3.2.13) and my bundle install works successfully. However while running rails server, I get the error below. Any suggestions are most appreciated. Thanks! -- rails server output

[Rails] cannot load such file -- unicode (LoadError)

2013-10-21 Thread RailsNewBie
I'm new to RoR and working on a migration of project developed by another team. I'm using Rails version (3.2.13) and my bundle install works successfully. However while running rails server, I get the error below. btw, I'm using Windows 7 and unicode (0.4.4). Is that the correct version for

[Rails] Strange behaviour with ActiveRecord has_many collections, Rails 4 compared to Rails 3

2013-10-21 Thread Neil Williams
Hi All, I have been told to post discussion based topic on here instead of the GitHub Issues. I thought this 'could' be a bug, but just need some clarification really. The issue I posted is here https://github.com/rails/rails/issues/12597, does anyone have any thoughts? Again:

[Rails] Developement in rails

2013-10-21 Thread Sushruth Sivaramakrishnan
Hello guys I have recently started using rails and plan to do some development for it Any advice on where to start -- 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: optimize la value of pool in database.yml

2013-10-21 Thread Frederick Cheung
On Sunday, October 20, 2013 11:14:40 PM UTC+1, Oto Iashvili wrote: Hi, I would like to understand how to calculate optimal value for pool parameter in database.yml I'm using rails 3, ruby 2, postgres, elasticsearch, unicorn, nginx My server : 12 coeurs 24 threads ( I dont know if it

Re: [Rails] Developement in rails

2013-10-21 Thread Colin Law
On 21 October 2013 05:35, Sushruth Sivaramakrishnan sivsushr...@gmail.com wrote: Hello guys I have recently started using rails and plan to do some development for it Any advice on where to start Searching this list archive should have shown you many asking the same question. The advise is

Re: [Rails] Looking for RoR friends

2013-10-21 Thread Dheeraj Kumar
Contact your local ruby user group. -- Dheeraj Kumar On Monday 21 October 2013 at 1:03 AM, Srivigneshwar Rabindranath Prasad wrote: This is quiet off topic but I am looking for friends from this group. Reply me :) -- You received this message because you are subscribed to the Google

[Rails] Re: .exe creation

2013-10-21 Thread Matt Jones
On Monday, 21 October 2013 04:58:19 UTC-4, Ruby-Forum.com User wrote: Okay ,so we should try creating a .exe in windows only i guess. then would you please provide me the right way of steps to be followed to create .exe in windows . or suggest me how to create a executable for my

[Rails] Re: Strange behaviour with ActiveRecord has_many collections, Rails 4 compared to Rails 3

2013-10-21 Thread Frederick Cheung
On Monday, October 21, 2013 11:28:22 AM UTC+1, Neil Williams wrote: Hi All, I have been told to post discussion based topic on here instead of the GitHub Issues. I thought this 'could' be a bug, but just need some clarification really. The issue I posted is here

Re: [Rails] Looking for RoR friends

2013-10-21 Thread Scott Ribe
On Oct 21, 2013, at 5:49 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.com wrote: Contact your local ruby user group. Speaking of which, is there a list of these somewhere? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message

Re: [Rails] Looking for RoR friends

2013-10-21 Thread Walter Lee Davis
Use The Source, Luke: https://www.ruby-lang.org/en/community/user-groups/ Walter On Oct 21, 2013, at 9:46 AM, Scott Ribe wrote: On Oct 21, 2013, at 5:49 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.com wrote: Contact your local ruby user group. Speaking of which, is there a list of these

[Rails] What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Monserrat Foster
Do they open a file and load it into memory? I'm asking because it seems to take a long time opening a file but after it opens looping into the variable is REALLY fast, could someone explain me or tell me where can I find an explanaition on how this sort of things work? -- You received this

[Rails] Re: Strange behaviour with ActiveRecord has_many collections, Rails 4 compared to Rails 3

2013-10-21 Thread Neil Williams
Hi Fred, Thanks for your reply. Using new in this way isn't something I've come across in quite a few years of using rails. How would you initialise a new Task object given you have the @story instance available to you? @task = Task.new(:story_id = @story.id)? If the above, I really

[Rails] Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Joel Pearson
Usually the simplest way to learn how a gem works internally is to go and read the source code. This should be available in the gem files, on a github repository, or in the documentation. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Monserrat Foster
I'm asking because I'm new to both ruby and rails and my knowledge is not enough to understand source code On Monday, October 21, 2013 11:22:28 AM UTC-4:30, Ruby-Forum.com User wrote: Usually the simplest way to learn how a gem works internally is to go and read the source code. This should

[Rails] Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Joel Pearson
I haven't examined Roo, but you can see RubyXL reading the file into memory here: https://github.com/gilt/rubyXL/blob/master/lib/rubyXL/parser.rb -- 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] What is your favourite authentication gem and why?

2013-10-21 Thread desbest
What is your favourite authentication gem and why? Right now I have 4 to choose from (Cancan, Clearance, Rails Casthttp://railscasts.com/episodes/250-authentication-from-scratch) and I don't know which one to pick. I cannot use Device because I'm a beginner at Rails. -- You received this

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread Walter Lee Davis
CanCan is an Authorization solution, not an Authentication solution. Devise is Authentication only, and relies on CanCan or another Authorization framework to do that part of the job. Apples and Oranges, I'm afraid. Walter On Oct 21, 2013, at 12:34 PM, desbest wrote: What is your favourite

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread tynamite
What's the difference between an Authentication and Authorisation solution? From what I understand, I can use a column in the users table called *level*, and have number *5 *be an admin like if user.level == 5 On 21 October 2013 17:40, Walter Lee Davis wa...@wdstudio.com wrote: CanCan is an

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread Walter Lee Davis
Authentication is are you who you say you are. It establishes a session with the browser, and uses a login to check credentials before allowing that session to see anything you've protected from public view. Authorization uses a method like you describe, which allows certain _authenticated_

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread Lei Zhao
If you are trying to learn Rails and creating your first app with authentication, I think it's a good idea to build it from scratch so you have a better understanding about what is going on under the hood. After you have mastered it and/or just want to build your app quickly with standard

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread tynamite
I've decided to use the authentication system from the Ramaze ruby framework, as it's the most simplest. I'll let you know how it goes. On 21 October 2013 17:57, Lei Zhao leizh...@gmail.com wrote: If you are trying to learn Rails and creating your first app with authentication, I think it's a

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread Colin Law
On 21 October 2013 17:34, desbest afanintheho...@gmail.com wrote: What is your favourite authentication gem and why? Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I don't know which one to pick. I cannot use Device because I'm a beginner at Rails. If you are so much a

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread tynamite
I'm currently using Rails Tutorial, but there's a mistake in the book (which I emailed Michael to be corrected) so now I'm stuck and cannot go any further. On 21 October 2013 18:11, Colin Law clan...@googlemail.com wrote: On 21 October 2013 17:34, desbest afanintheho...@gmail.com wrote: What

Re: [Rails] What is your favourite authentication gem and why?

2013-10-21 Thread Colin Law
On 21 October 2013 18:13, tynamite afanintheho...@gmail.com wrote: I'm currently using Rails Tutorial, but there's a mistake in the book (which I emailed Michael to be corrected) so now I'm stuck and cannot go any further. Explain the problem here, probably someone will be able to help. Start

[Rails] Is it a good idea to use timestamps

2013-10-21 Thread desbest
Timestamps are a number that counts the number of seconds from the epoch date 1/1/1970. I read somewhere on the internethttp://en.wikipedia.org/wiki/Year_2038_problem, that timestamps will expire in the year 2038. This is why I always use *-mm-dd* and *-mm-dd HH:ss* to show the date

[Rails] I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
At the point of this section *http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure clicking the Create my account button on the signup form shows the following image at

[Rails] git push not working

2013-10-21 Thread Natmanu
https://lh4.googleusercontent.com/-IA0TutFw54A/UmVnJwi7CHI/Azg/fEZFf_kHsug/s1600/git.gif Hi again, I'm working on http://ruby.railstutorial.org section http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-git_push I'm trying to push the repository to the remote site but what

Re: [Rails] git push not working

2013-10-21 Thread Jordan Miller
follow the tutorial on github first for how to create a repo and push to it from your computer for the first time. jordan On Oct 21, 2013, at 1:42 PM, Natmanu natm...@gmail.com wrote: https://lh4.googleusercontent.com/-IA0TutFw54A/UmVnJwi7CHI/Azg/fEZFf_kHsug/s1600/git.gif Hi again,

Re: [Rails] I think I've found a mistake in Rails tutorial

2013-10-21 Thread Colin Law
On 21 October 2013 18:35, desbest afanintheho...@gmail.com wrote: At the point of this section http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure clicking the Create my account button on the signup form shows the following image at According to the tutorial, I must

[Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
There is no params as I am just clicking a Signup button that's on a page, then the error shows up. I'm using Ruby 1.9.3 and the latest versions of sass-rails and coffee-rails. On Monday, October 21, 2013 6:35:15 PM UTC+1, desbest wrote: At the point of this section

[Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread desbest
There is no params as I am just clicking a Signup button that's on a page, then the error shows up. I'm using Ruby 1.9.3 and the latest versions of sass-rails and coffee-rails. development.log says this Started POST /users for 127.0.0.1 at 2013-10-21 19:35:27 +0100 Processing by

Re: [Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread Jordon Bedwell
On Mon, Oct 21, 2013 at 1:37 PM, desbest afanintheho...@gmail.com wrote: There is no params as I am just clicking a Signup button that's on a page, then the error shows up. I'm using Ruby 1.9.3 and the latest versions of sass-rails and coffee-rails. development.log says this Started POST

Re: [Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread Jordon Bedwell
On Mon, Oct 21, 2013 at 1:40 PM, Jordon Bedwell envyge...@gmail.com wrote: One should not claim a tutorial is broken before finishing it, because clearly further down: http://ruby.railstutorial.org/chapters/sign-up#sec-strong_parameters To add since I neglected to mention it like I should

Re: [Rails] git push not working

2013-10-21 Thread Evaldo Santos
Follow this tutorial: https://help.github.com/articles/generating-ssh-keys On Mon, Oct 21, 2013 at 2:50 PM, Jordan Miller jrdn...@gmail.com wrote: follow the tutorial on github first for how to create a repo and push to it from your computer for the first time. jordan On Oct 21, 2013,

Re: [Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread tynamite
Thanks for your help. It turns out I missed something out. (Figure 7:22) On 21 October 2013 19:45, Jordon Bedwell envyge...@gmail.com wrote: On Mon, Oct 21, 2013 at 1:40 PM, Jordon Bedwell envyge...@gmail.com wrote: One should not claim a tutorial is broken before finishing it, because

Re: [Rails] git push not working

2013-10-21 Thread Natmanu
Thanks for the replies. The problem is that I have already pushed once and it worked well. https://github.com/natmanu/first_app after this I installed heroku. I think heroku (ON WINDOWS ) also installed a git so maybe there's a conflict. but I dotn know where to start looking for conflict.

Re: [Rails] git push not working

2013-10-21 Thread Natmanu
Hi, More info: In my .ssh directory on windows, I have 2 SSH public keys github_rsa github_rsa.pub id_rsa id_rsa.pub And on my remote Git I have only one key. Can I add two SSH to github? or can I call git and specify which key to use for authentication??? Nat On Monday, 21 October 2013

[Rails] [ANN] Rails 4.0.1.rc2 has been released!

2013-10-21 Thread Rafael Mendonça França
We fixed two regressions on Active Record. Here are the changes from 4.0.1.rc1 to 4.0.1.rc2: https://github.com/rails/rails/compare/v4.0.1.rc1...v4.0.1.rc2 And the changes from 4.0.0 to 4.0.1: https://github.com/rails/rails/compare/v4.0.0...v4.0.1.rc2 If we don't hit any more stumbling

[Rails] Re: Barcode Generation : Code 128

2013-10-21 Thread mariah lewis
have you gotten it out? code 128can be generated using many platforms,you can take this vb.net code 128 for example http://www.keepautomation.com/vbnet_barcode/code_128.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Is it a good idea to use timestamps

2013-10-21 Thread Robert Walker
desbest wrote in post #1125087: Timestamps are a number that counts the number of seconds from the epoch date 1/1/1970. I read somewhere on the internethttp://en.wikipedia.org/wiki/Year_2038_problem, that timestamps will expire in the year 2038. This is why I always use *-mm-dd* and