[Rails] I cannot cannot connec the mysql2 gem

2013-08-12 Thread Harish Vishnu
rails s /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require': cannot load such file -- mysql2/mysql2 (LoadError) from /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `top (required)' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in

[Rails] Rails Guides publishing delay?

2013-08-12 Thread Dow Drake
I was just wondering why the published Rails Getting Started guidehttp://guides.rubyonrails.org/getting_started.htmlseems to be so far behind the source at Githubhttps://github.com/rails/rails/blob/master/guides/source/getting_started.md. -- You received this message because you are

[Rails] Pre Registration and Single Passwords

2013-08-12 Thread branden
Hello all, I'm new to Rails and have been learning for a couple months now. I am building a simple application that will be used internally by a 20 people within an organization. In the first instance they will need to sign up with their email address. When the app is ready to go live with

[Rails] [JOBS] Open Full-Time RoR role in NYC or Cincinnati. Immediate start!

2013-08-12 Thread robert schwartz
Our client is a leading interactive firm that is looking to bring on a Lead Ruby on Rails to join their dynamic and smart team. They are open to hiring full-time or a long term consultant. This opportunity is offering a very aggressive pay. Below are the details. Please respond quickly if

[Rails] Problem with rake db:populate on chapter 10.3.2

2013-08-12 Thread Ben Pines
Hi. I am having problems populating my db. I created a sample_data.rake file/ When I run rake db:populate it shows exactly what it should show- no errors. But when I go to localhost and try to login the db has not been populated. -- You received this message because you are subscribed to

[Rails] Global protocol setting for all url helpers?

2013-08-12 Thread stantona
I notice there's the protocol option you can pass to route helpers to ensure that you can use https. I'm just wondering if there's a setting that can be applied globally so that I don't have to do this with each individual call. Thanks. -- You received this message because you are

[Rails] Re: Problem getting Nginx Unicorn to work for Railo 4 on Ubuntu 12.04

2013-08-12 Thread Ivan Histand
I have a project I've been working on that may help. It includes some template config files for both unicorn and nginx, as well as bash scripts to set it up with or without ssl. The assumption is that you are setting it up on Amazon EC2, but it should work with minor changes for any linux

Re: [Rails] Rails Guides publishing delay?

2013-08-12 Thread Dheeraj Kumar
Read http://edgeguides.rubyonrails.org -- Dheeraj Kumar On Sunday 11 August 2013 at 9:14 AM, Dow Drake wrote: I was just wondering why the published Rails Getting Started guide (http://guides.rubyonrails.org/getting_started.html) seems to be so far behind the source at Github

Re: [Rails] I cannot cannot connec the mysql2 gem

2013-08-12 Thread Dheeraj Kumar
Have you installed mysql libraries? -- Dheeraj Kumar On Friday 9 August 2013 at 9:17 PM, Harish Vishnu wrote: rails s /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require': cannot load such file -- mysql2/mysql2 (LoadError) from

Re: [Rails] Problem with rake db:populate on chapter 10.3.2

2013-08-12 Thread Colin Law
On 11 August 2013 05:17, Ben Pines bpi...@gmail.com wrote: Hi. I am having problems populating my db. I created a sample_data.rake file/ When I run rake db:populate it shows exactly what it should show- no errors. But when I go to localhost and try to login the db has not been populated.

Re: [Rails] I cannot cannot connec the mysql2 gem

2013-08-12 Thread Colin Law
On 9 August 2013 16:47, Harish Vishnu vishnuharis...@gmail.com wrote: rails s /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require': cannot load such file -- mysql2/mysql2 (LoadError) If you look in the lib folder mentioned above is there a subdirectory mysql2 containing

[Rails] Re: Global protocol setting for all url helpers?

2013-08-12 Thread Matt Jones
On Friday, 9 August 2013 15:15:16 UTC-4, stantona wrote: I notice there's the protocol option you can pass to route helpers to ensure that you can use https. I'm just wondering if there's a setting that can be applied globally so that I don't have to do this with each individual call.

[Rails] Re: How to move rails application from one server to another server

2013-08-12 Thread kishan kumar k.
Robert Walker wrote in post #1116678: kishan kumar katamala wrote in post #1116674: Hi all, I am newbie to ruby on rails, i want to move rail application from one server to another servers. can you please help me. You need to investigate a proper application deployment strategy. You

Re: [Rails] Re: How to move rails application from one server to another server

2013-08-12 Thread Colin Law
On 12 August 2013 12:51, kishan kumar k. li...@ruby-forum.com wrote: Robert Walker wrote in post #1116678: kishan kumar katamala wrote in post #1116674: Hi all, I am newbie to ruby on rails, i want to move rail application from one server to another servers. can you please help me. You

Re: [Rails] Volunteers required on a Rails Open Source project

2013-08-12 Thread Iain Davis
Angela: Have you checked out Crowd-In (http://crowdin.net)? It is a crowd-based translation service and they are free for open-source projects: http://crowdin.net/page/open-source-project-setup-request. I'm using them for a small project and they've been helpful. Iain On Sun, Aug 11, 2013 at

Re: [Rails] Volunteers required on a Rails Open Source project

2013-08-12 Thread angela ebirim
Oh Thanks Iain, will do! On 12 August 2013 13:24, Iain Davis i...@ruhlendavis.org wrote: Angela: Have you checked out Crowd-In (http://crowdin.net)? It is a crowd-based translation service and they are free for open-source projects: http://crowdin.net/page/open-source-project-setup-request.

Re: [Rails] Pre Registration and Single Passwords

2013-08-12 Thread Walter Lee Davis
On Aug 9, 2013, at 12:12 PM, bran...@univrs.co.uk wrote: Hello all, I'm new to Rails and have been learning for a couple months now. I am building a simple application that will be used internally by a 20 people within an organization. In the first instance they will need to sign up

[Rails] a newbie questionadding database field to a model basing only on schema (without model regeneration)

2013-08-12 Thread Valentin Kotelnitski
hi! i am trying to add database field to a model without model regeneration. i have added my field to migration scripts class CreateUsers ActiveRecord::Migration def change create_table :users do |t| t.string :name t.string :lg, :default = en t.timestamps end end

Re: [Rails] a newbie questionadding database field to a model basing only on schema (without model regeneration)

2013-08-12 Thread Colin Law
On 12 August 2013 16:26, Valentin Kotelnitski li...@ruby-forum.com wrote: hi! i am trying to add database field to a model without model regeneration. i have added my field to migration scripts class CreateUsers ActiveRecord::Migration def change create_table :users do |t|

[Rails] Re: a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Valentin Kotelnitski
thanks for an advise not to change the code in migration tables. i could delete it and add new fields by new migrations scripts but these migration scripts have an influence only on a database schema, not on a table model in app/models catalogue. the only thing i want to do is to add database

Re: [Rails] Duplicating a Paperclip attachment without running processors?

2013-08-12 Thread Walter Lee Davis
Replying to my own, since I posted after beer-thirty on Friday. On Aug 9, 2013, at 5:15 PM, Walter Lee Davis wrote: I need to duplicate an object that has an attached Paperclip file. This file (depending on its file-type) may have two to four different styles, with separate file-processing

Re: [Rails] Re: a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Colin Law
Please remember to quote the previous message and insert your reply inline at appropriate points in the previous message. Remember this is a mailing list not a forum (though you may be accessing it using a forum-like interface). Thanks. On 12 August 2013 16:47, Valentin Kotelnitski

[Rails] Re: Re: a newbie questionadding database field to a model basing only on schema (without model regen

2013-08-12 Thread Valentin Kotelnitski
Thank you, Colin! Colin Law wrote in post #1118501: Please remember to quote the previous message and insert your reply inline at appropriate points in the previous message. Remember this is a mailing list not a forum (though you may be accessing it using a forum-like interface). Thanks.

[Rails] Re: a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Valentin Kotelnitski
Sorry, it is not a solution. add_column in generated migration scripts adds desired column to database schema. Except that I need a property in my model of a table corresponding to a newly migrated column. That is the question. -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Scott Ribe
On Aug 12, 2013, at 11:57 AM, Valentin Kotelnitski li...@ruby-forum.com wrote: Except that I need a property in my model of a table corresponding to a newly migrated column. That is the question. ? Rails models automatically derive from the current schema. If you're actually asking what I

Re: [Rails] a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Walter Lee Davis
If you're curious, read up on the Active Record (two words) pattern here: http://martinfowler.com/eaaCatalog/activeRecord.html Each time you get an object, that object is built up from whatever is in the database record that backs it as of that moment. You either get the default value for that

Re: [Rails] a newbie questionadding database field to a model basing only on schema (without model regenerat

2013-08-12 Thread Walter Lee Davis
Actually, this is a better write-up, forget what I suggested earlier, that's a stub to a book you'd need to buy. (And I think everyone should own it, too.) https://en.wikipedia.org/wiki/Active_record_pattern Walter On Aug 12, 2013, at 2:07 PM, Scott Ribe wrote: On Aug 12, 2013, at 11:57 AM,

[Rails] Session variable in default_scope

2013-08-12 Thread Richard Midwinter
I have a project model which I'd like to set the default_scope to filter out projects where the user doesn't have permission to view them. Think something along the lines of the projects having a list of teams and companies that the user must be in to access the data. default_scope seems to work

Re: [Rails] Re: Re: a newbie questionadding database field to a model basing only on schema (without model regen

2013-08-12 Thread Colin Law
Firstly, somehow you are starting a new thread (as I view it in gmail at least) for every reply. I don't use ruby-forum so I don't know what you are doing wrong but something is not right. Have you considered signing up to the mailing list, then life will be much simpler. On 12 August 2013

[Rails] Re: Session variable in default_scope

2013-08-12 Thread Richard Midwinter
I've tried following the pattern from the accepted answer here: http://stackoverflow.com/questions/10680845/owner-filteder-model-objects-on-rails-3 But I'm left with a problem in that I populate the session variables on User.after_database_connection (when I'd assumed, probably incorrect, that we

[Rails] Re: heroku with iconv error

2013-08-12 Thread Max Davila
Hi, anu. I am having the same exact problem. Just wondering if you found a solution. I am stumped. On Friday, July 26, 2013 4:56:09 AM UTC-4, anu wrote: heroku gives the error application error in the browser for import functionality in heroku logs application.rb/ require:cannot load

[Rails] Re: Nginx Unicorn setup

2013-08-12 Thread Dwight S.
Sounds like there's something wrong with your nginx config and/or unicorn.conf. Could you put a github gist link for each of these configurations? Cheers, Dwight S. (@denzuko) ComputekIndustries.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Sharing post via email on social Q and A site

2013-08-12 Thread rubist2013 rails
From a rails social question and answer site, I want to allow users to share a question via email. The question would have an email icon that opens a modal where an email address, name, and comments could be entered. I am not interested in saving the entered information. It would get passed to