[Rails] Different DataBases Used in ROR

2012-09-13 Thread keerthi priya
Hi all i am trying analyze which DataBase is good for ROR if the application is huge. After goggling i found the following DB used in ROR 1) MONGO DB 2) MYSQL 3) POSTGRESQL 4) SQLITE 5) ORACLE apart from above list any other DB are used for ROR and my Questions is from the above which DB is

[Rails] multiple-select no method found?

2012-09-13 Thread Soichi Ishida
Rails 3.1.3 latest formtastic My app requires dynamic select forms, so I have models class Departure ActiveRecord::Base has_many :airlines has_many :destinations, :through = :airlines end class Destination ActiveRecord::Base has_many :airlines has_many :departures, :throught =

[Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Kashif Umair Liaqat
Oracle is the best option for what you want. If you can afford it (because it is a bit expensive) you should go for Oracle but if you want a free solution then I would recommend MySQL. On Thursday, September 13, 2012 11:08:11 AM UTC+5, keerthi priya wrote: Hi all i am trying analyze which

[Rails] access key error

2012-09-13 Thread Saravanan P
I am getting following error while run my rails app in my server ActionView::Template::Error (You did not provide both required access keys. Please provide the access_key_id and the secret_access_key.): -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] multiple-select no method found?

2012-09-13 Thread Colin Law
On 13 September 2012 07:10, Soichi Ishida li...@ruby-forum.com wrote: Rails 3.1.3 latest formtastic My app requires dynamic select forms, so I have models class Departure ActiveRecord::Base has_many :airlines has_many :destinations, :through = :airlines end class Destination

[Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Rajesh reddy
Hi Keerthi, We have been developing very large web applications with MongoDB from the past 1 year. It's really cool and very easy to learn. Give it a try you can find it very interesting and easy to use Thanks, Rajesh. On Thursday, September 13, 2012 11:38:11 AM UTC+5:30, keerthi priya

Re: [Rails] access key error

2012-09-13 Thread Colin Law
On 13 September 2012 08:53, Saravanan P saravana...@shriramits.com wrote: I am getting following error while run my rails app in my server ActionView::Template::Error (You did not provide both required access keys. Please provide the access_key_id and the secret_access_key.): I think you may

Re: [Rails] access key error

2012-09-13 Thread Saravanan P
Thanks for the reply. This is from my .log file Started GET / for 122.183.133.1 at 2012-09-13 07:38:52 + Processing by HomeController#index as HTML [1m [36mProduct Load (1.3ms) [0m [1mSELECT id, product_type, name, slug, short_description, price, farm_name, lbcount, unit FROM

Re: [Rails] access key error

2012-09-13 Thread Jim Ruther Nill
On Thu, Sep 13, 2012 at 6:07 PM, Saravanan P saravana...@shriramits.comwrote: Thanks for the reply. This is from my .log file Started GET / for 122.183.133.1 at 2012-09-13 07:38:52 + Processing by HomeController#index as HTML [1m [36mProduct Load (1.3ms) [0m [1mSELECT id,

[Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Kashif Umair Liaqat
Rajesh, I have heard that MongoDB have many limitations. Many of the servers don't support it. Also many of the gems don't have support for it as well. Most gems support sqlite or mysql. On Thursday, September 13, 2012 1:01:29 PM UTC+5, Rajesh reddy wrote: Hi Keerthi, We have been

[Rails] Time to flounce...

2012-09-13 Thread Michael Pavling
Well, it's been a lovely few (four, I think?) years on the RailsTalk list, but I'm unsubscribing now (and I didn't want to just fade out the side-doors like so many names before). I'm still working with Rails (and will continue to while the contracts are around), but I can't take the volume and

Re: [Rails] access key error

2012-09-13 Thread Saravanan P
I provide all keys but not working. In development working well *In my model* has_attached_file :crop_content, :styles = {:thumb = 89x75#,:crop_content=160x160# }, :path = assets/crops/contents/:id/:style/:basename.:extension, :storage = s3, #:s3_headers = { 'Cache-Control' =

[Rails] Devise single sign in for two models

2012-09-13 Thread angel david
Hi All, I have a requirement. A person will sign up to my site and send invitations to some users. The person who sign-up will be taken as admin and will be stored in admin table. Other users who get invitations through mail will be stored in user table. I used devise for admin sign-up. Now

[Rails] Re: multiple-select no method found?

2012-09-13 Thread angel david
#error ActionView::Template::Error (undefined method `airline' for #Plan:0x01037e66f8): 3: % if !@airlines.blank? % 4: %= f.input :airline, :collection=airlines.collect{ |s| [s.company,s.id]} % 5: % else % 6: %= f.input :airline, :collection=[] %

Re: [Rails] Devise single sign in for two models

2012-09-13 Thread Colin Law
On 13 September 2012 11:36, angel david li...@ruby-forum.com wrote: Hi All, I have a requirement. A person will sign up to my site and send invitations to some users. The person who sign-up will be taken as admin and will be stored in admin table. Other users who get invitations through

Re: [Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread keerthi priya
Can i get a brief explanation on Do's and Don’t for the each DB in my list . i mean any link where i can get all those informations. On Thu, Sep 13, 2012 at 1:47 PM, Kashif Umair Liaqat kulking...@gmail.comwrote: Rajesh, I have heard that MongoDB have many limitations. Many of the servers

Re: [Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Kashif Umair Liaqat
Google is the best option for this purpose. All the databases have a lot of pros and cons which cannot be covered here. You can google for pros and cons of every database. On Thursday, September 13, 2012 5:28:46 PM UTC+5, keerthi priya wrote: Can i get a brief explanation on Do's and Don’t

[Rails] Re: How to connect to a mysql database through a rails application.

2012-09-13 Thread abhijit m.
Hello Ir, please provide chaqnges in .yml file...for Mysql...' I have cretaed MySql datbase and now i want to connect my MySql DB on rails... -- 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

Re: [Rails] Re: How to connect to a mysql database through a rails application.

2012-09-13 Thread keerthi priya
when you are trying to create a app just add these line -d mysql you will get the yml according to mysql and change the username and password according to your mysql password. On Thu, Sep 13, 2012 at 6:23 PM, abhijit m. li...@ruby-forum.com wrote: Hello Ir, please provide chaqnges in .yml

[Rails] Loading the lib folder troubles

2012-09-13 Thread Andre Dublin
im having trouble loading classes and modules in my lib folder, i've google for loading lib folder +rails and come across one answer which is reflected in my code ( the config/application.rb ) http://pastie.org/4708688, but still i get uninitialized constant error -- You received this

[Rails] [JOBS] DevOps Engineer positions with Chef @LivingSocial - REMOTE

2012-09-13 Thread kenpersel
Seeking DevOps / Chef hackers for LivingSocial. Several positions are remote or can be based out of HQ in DC-USA or any international office. Contract and direct hire positions available.The brief skinny: *Our Senior Operations Engineer will be working to improve the speed,

Re: [Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Fabian Becker
It all depends on what you need. There is no use this DB for huge applications. Definitely don't use SQLite in production as it doesn't scale. MySQL - can scale well if used correctly and was used by Twitter for a long time PostgreSQL - is currently on the rise and a lot of gems start to support

[Rails] How to read Microsoft document file in ruby on rails ?

2012-09-13 Thread rovin varshney
Hello Everyone, I m looking for parsing doc/docx file in ruby on rails. I have use File.open('filename','r'), but it shows special character instead of the content of file . Thanks. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Different DataBases Used in ROR

2012-09-13 Thread Pasha Muravyev
I'd suggest postgresql, for the sole reason that postgresql supports transactional migrations, which saves so many headaches and possibly undoing corrupted database schemas (in the future). It's also open source as opposed to Oracle - if you get stuck with a problem on the latter, you might be

[Rails] Problem with counter cache in many-to-many relationship

2012-09-13 Thread Fabian Becker
Hi guys, I am having trouble getting to counter cache to work properly with a many-to-many relationship. What I have done is: rails g scaffold post title:string body:text rails g scaffold tag name:string taggings_count:integer rails g model tagging post_id:integer tag_id:integer Then I created

[Rails] TAPE, LLC is seeking to immediately hire a Ruby on Rails Web Developer-Aberdeen, MD

2012-09-13 Thread Director of Recruiting
TAPE is a dynamic and innovative company that supports its clients with advanced technological and management tools required to succeed in today’s fast-paced world. We develop innovative solutions to critical systems and high-level security challenges while focusing quality IT and

[Rails] [JOB] Software Engineer

2012-09-13 Thread Nicola
Signpost https://www.signpost.com/ New York, NY We're looking for a Software Engineer with experience 1-5 years Ruby on Rails Experience, proficient in SQL (Preferably PostgreSQL), and with a strong ability to integrate software with multiple partners through feeds and APIs. You’ll have the

Re: [Rails] Re: ActiveSupport::Notifications threading question

2012-09-13 Thread Frederick Cheung
On Thursday, September 13, 2012 1:28:11 AM UTC+1, Jeffrey Jones wrote: Sorry I was talking out of my arse in the last post. Correct version: I have done various testing using MRI and JRuby with config.threadsafe! and it appears to work in all the tests I have thrown at it, but that gives

Re: [Rails] How to read Microsoft document file in ruby on rails ?

2012-09-13 Thread Walter Lee Davis
On Sep 13, 2012, at 7:35 AM, rovin varshney wrote: Hello Everyone, I m looking for parsing doc/docx file in ruby on rails. I have use File.open('filename','r'), but it shows special character instead of the content of file . If all you want is the text content of the files, you

Re: [Rails] Re: How to connect to a mysql database through a rails application.

2012-09-13 Thread Colin Law
On 13 September 2012 14:14, keerthi priya emailtokeerthipr...@gmail.com wrote: when you are trying to create a app just add these line -d mysql you will get the yml according to mysql and change the username and password according to your mysql password. If you have already created the app

[Rails] Creating a link_to from a collection_select

2012-09-13 Thread Brian Ekmark
I want to be able to change one attribute of a link_to to be what is the current selection of the collection_select. And needless to say I can't quite figure it out. app/views/tasks/show.html.erb Who would you like to assign this task to?br / %= link_to 'Myself', :controller = 'task_queues',

[Rails] Re: jsrender, templates, assets, etc.

2012-09-13 Thread Steven H.
Sorry to post again here, but I recently changed the project name on github so that the name better reflected the purpose of the library: https://github.com/stevenmtwhunt/tmpl.loader -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] How to connect to a mysql database through a rails application.

2012-09-13 Thread Walter Lee Davis
On Sep 13, 2012, at 10:26 AM, Colin Law wrote: On 13 September 2012 14:14, keerthi priya emailtokeerthipr...@gmail.com wrote: when you are trying to create a app just add these line -d mysql you will get the yml according to mysql and change the username and password according to your

Re: [Rails] access key error

2012-09-13 Thread Saravanan P
i don't think error be in my amazon s3 access key. Because as i mentioned earlier some of page was running and that pages having s3 images. May be some other error... :( please help On Thu, Sep 13, 2012 at 2:49 PM, Saravanan P saravana...@shriramits.comwrote: I provide all keys but not

Re: [Rails] access key error

2012-09-13 Thread Jim Ruther Nill
On Fri, Sep 14, 2012 at 1:01 AM, Saravanan P saravana...@shriramits.comwrote: i don't think error be in my amazon s3 access key. Because as i mentioned earlier some of page was running and that pages having s3 images. May be some other error... :( I'm pretty sure it has something to do with

Re: [Rails] access key error

2012-09-13 Thread Saravanan P
ok if my s3_credentials is problem mean, i can able to see app-logo which stored in s3 in my about-us page. and for %img{:alt = product,:src=#{i.image.url(:products)}, :width = 329 , :height =251} look at the class of whatever 'i' is, particularly the s3_credentials option you passed for that

Re: [Rails] access key error

2012-09-13 Thread Jim Ruther Nill
On Fri, Sep 14, 2012 at 2:00 AM, Saravanan P saravana...@shriramits.comwrote: ok if my s3_credentials is problem mean, i can able to see app-logo which stored in s3 in my about-us page. and for %img{:alt = product,:src=#{i.image.url(:products)}, :width = 329 , :height =251} look at the

Re: [Rails] access key error

2012-09-13 Thread Colin Law
On 13 September 2012 17:00, Saravanan P saravana...@shriramits.com wrote: ok if my s3_credentials is problem mean, i can able to see app-logo which stored in s3 in my about-us page. and for %img{:alt = product,:src=#{i.image.url(:products)}, :width = 329 , :height =251} Should that be

Re: [Rails] access key error

2012-09-13 Thread Colin Law
On 13 September 2012 17:30, Colin Law clan...@googlemail.com wrote: On 13 September 2012 17:00, Saravanan P saravana...@shriramits.com wrote: ok if my s3_credentials is problem mean, i can able to see app-logo which stored in s3 in my about-us page. and for %img{:alt =

[Rails] Comments are not being nested

2012-09-13 Thread Kyle A.
So for the convince of all I have posted my code on gist. I am having issues using the ancestry gem to nest comments. the issue is that said comment does not nest under the parent comment, instead it is added to the end of the comments list. I have a relationship of tasks to comments, where a

Re: [Rails] Comments are not being nested

2012-09-13 Thread Colin Law
On 13 September 2012 19:22, Kyle A. li...@ruby-forum.com wrote: So for the convince of all I have posted my code on gist. I am having issues using the ancestry gem to nest comments. the issue is that said comment does not nest under the parent comment, instead it is added to the end of the

[Rails] Re: Comments are not being nested

2012-09-13 Thread Kyle A.
Colin Law wrote in post #1075895: On 13 September 2012 19:22, Kyle A. li...@ruby-forum.com wrote: So for the convince of all I have posted my code on gist. I am having issues using the ancestry gem to nest comments. the issue is that said comment does not nest under the parent comment, instead

[Rails] Rails 2 to Rails 3 mysql migration?

2012-09-13 Thread Jeff Pritchard
I have an old rails project that is currently in Rails 2.3 I'm about to undertake updating the project to Rails 3.2. The old project's production server is on mysql 5.0 and has a medium size database (not huge, but certainly big enough that I need to keep the data after I upgrade the app). If I

Re: [Rails] Re: Comments are not being nested

2012-09-13 Thread Colin Law
On 13 September 2012 21:28, Kyle A. li...@ruby-forum.com wrote: Colin Law wrote in post #1075895: On 13 September 2012 19:22, Kyle A. li...@ruby-forum.com wrote: So for the convince of all I have posted my code on gist. I am having issues using the ancestry gem to nest comments. the issue is

Re: [Rails] Rails 2 to Rails 3 mysql migration?

2012-09-13 Thread Colin Law
On 13 September 2012 21:41, Jeff Pritchard li...@ruby-forum.com wrote: I have an old rails project that is currently in Rails 2.3 I'm about to undertake updating the project to Rails 3.2. The old project's production server is on mysql 5.0 and has a medium size database (not huge, but

[Rails] Re: Re: Comments are not being nested

2012-09-13 Thread Kyle A.
Colin Law wrote in post #1075904: On 13 September 2012 21:28, Kyle A. li...@ruby-forum.com wrote: My code is posted here: https://gist.github.com/3716160 Colin render(comment) + content_tag(:div, nested_comments(sub_comments), { #TreeNode id: 100018, name: Stinky, ancestry: nil {

Re: [Rails] Re: Re: Comments are not being nested

2012-09-13 Thread Colin Law
On 13 September 2012 21:51, Kyle A. li...@ruby-forum.com wrote: Colin Law wrote in post #1075904: On 13 September 2012 21:28, Kyle A. li...@ruby-forum.com wrote: My code is posted here: https://gist.github.com/3716160 Colin render(comment) + content_tag(:div,

[Rails] Re: Rails 2 to Rails 3 mysql migration?

2012-09-13 Thread Jeff Pritchard
Colin Law wrote in post #1075905: On 13 September 2012 21:41, Jeff Pritchard li...@ruby-forum.com wrote: db over from the old server, or if there will be a need for some sort of a migration? Any info on what I'm up against there will be much appreciated. In that situation I would use

[Rails] Re: Re: Re: Comments are not being nested

2012-09-13 Thread Kyle A.
Colin Law wrote in post #1075908: On 13 September 2012 21:51, Kyle A. li...@ruby-forum.com wrote: I am lost. Yes. I am 100% sure I understand the full usage of the gem and have tripple checked documentation, stack over flow and other blogs, its not an issue with the gem, its an issue with my

[Rails] Re: Comments are not being nested

2012-09-13 Thread Kyle A.
So I have updated the gist https://gist.github.com/3716160 to show more information -- 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 post to this group, send email to

[Rails] Re: [JOBS] DevOp / SysOp for Web Application (Location: Preferably in Berlin, remote work possible)

2012-09-13 Thread Linas G.
Good day, Mr. Wolfram! It sounds like a very exciting start-up company, so it would be huge pleasure to take part at your project as a partner. My name is Linas and I represent IT company, that was established in 2005, Lithuania. We are the team of 7 people who grow their knowledge in internet

[Rails] calling method on base intended to simulate initialize on instances?

2012-09-13 Thread John Merlino
class A def initialize setup_b setup_c end def b_and_c #{@b} and #{@c} end private def setup_b @b = 'b' end def setup_c @c = 'c' end def setup_d @d = 'd' end end a = A.new a.instance_variable_get(@b) # = b a.instance_variable_get(@c) # = c

[Rails] Re: calling method on base intended to simulate initialize on instances?

2012-09-13 Thread 7stud --
1) class Dog module Cat puts 'hello' end end --output:-- hello 2) Do all the methods of the module get copied over to base Never. 3) I don't know. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Re: How to connect to a mysql database through a rails application.

2012-09-13 Thread abhijit m.
keerthi priya wrote in post #1075820: when you are trying to create a app just add these line -d mysql you will get the yml according to mysql and change the username and password according to your mysql password. Thanks ...changing user n apssword is not issue...but it indirectly creating