Re: [Rails] Re: restricting force_ssl to one controller

2013-07-14 Thread Matt Davies
Tim, thanks for the help, worked a treat. On 12 July 2013 13:59, Timster wrote: > You're not stuffed. > > Right now you're generating the tag manually with the path "/events" > > If you switch to Rails helpers to generate the URL, your problems can be > solved. Which helpers you use depends on

[Rails] Re: Asset Pipeline: Asset attempted to compress while creating page response & not during asset request

2013-07-14 Thread farukhdm
Hey, Thanks for enlightenment :) I shall perform some ups and downs. Will let you know, if I get any new insight On Saturday, 13 July 2013 01:15:01 UTC+5:30, mike wrote: > > > > On Friday, July 12, 2013 2:07:55 AM UTC-4, farukhdm wrote: >> >> Following are the configurations in my production.rb

Re: [Rails] importing mysql table

2013-07-14 Thread Colin Law
On 14 July 2013 19:49, Oliver David wrote: > i got ruby and mysql configured successully on my windows pc. > > Im using mysql as default db. so I created new rails project. > > I ran the cmd > rake db:create:all > rake db:migrate > > so I got the db created. I have existing db of country table.

[Rails] importing mysql table

2013-07-14 Thread Oliver David
i got ruby and mysql configured successully on my windows pc. Im using mysql as default db. so I created new rails project. I ran the cmd rake db:create:all rake db:migrate so I got the db created. I have existing db of country table. I imported it to the development db. question: is ther

Re: [Rails] Re: Why the need for multiple $GEM_PATHS

2013-07-14 Thread Luke Hamilton
I ended up switching from rbenv to chruby as its only keeps one GEM_PATH location per major version of rubies and not a new location for all the patch levels. And its much simpler too. :) Kind regards, Luke Hamilton +61 0430223558 @lukekhamilton “When I let go of what I am, I become what I might

[Rails] Re: Why the need for multiple $GEM_PATHS

2013-07-14 Thread Rick
You only need multiple copies of any gems that require a specific version to run with your current ruby. GEM_PATH can include multiple directories just as the shell PATH does. So if you're running two different ruby environments, RUBY_A and RUBY_B, you could use a GEM_PATH that looks like: RU

[Rails] Form objects vs nested attributes in 1 to many association

2013-07-14 Thread Thomas Chik
Recently I have been reading about form objects and have been wondering its use in 1 to many assocation. Let's say I have a model of project with many tasks and the user edits the project along with the tasks in one big form. Is nested attributes using cocoon gem better suited than using refor

[Rails] Re: Why the need for multiple $GEM_PATHS

2013-07-14 Thread Michał Papis
also appeared in Ruby Parley - moved to https://github.com/rubygems/rubygems/pull/596 $GEM_HOME is a way of controlling rubygems gems install location: * benefits: thanks to GEM_HOME you can install ruby as "root" and gems as users, or reinstall ruby without removing gems, it allows you to sepa

Re: [Rails] Table Migration

2013-07-14 Thread Colin Law
On 13 July 2013 22:26, Rekha Benada wrote: > Hi, > > How do I migrate my table again and again after some changes.If I give > simply command "rake db:migrate" it doesn't take the changes I have done in > table What do you mean that it does not take the changes you have done in the table? You sho

Re: [Rails] Rails and MySQL

2013-07-14 Thread Balazs Varga
Hi, did you ran bundle install? Make sure that your Gemfile contains the line gem 'mysql' Balo On Sat, Jul 13, 2013 at 7:39 AM, Oliver David wrote: > I'm trying to use MySQL instead of SQLite3. I have MySQL installed on my > pc. Do I need to ran something in the ruby to use MySQL? > > > > > C

[Rails] Table Migration

2013-07-14 Thread Rekha Benada
Hi, How do I migrate my table again and again after some changes.If I give simply command "rake db:migrate" it doesn't take the changes I have done in table What is the right way to do that?? Rekha -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

Re: [Rails] Product suggestion

2013-07-14 Thread Rekha Benada
thanks BalaRaju On Thursday, June 20, 2013 8:00:38 AM UTC-7, BalaRaju Vankala wrote: > > Hey can you look here " twitter boot strap css", > > http://twitter.github.io/bootstrap/ > > > On Thu, Jun 20, 2013 at 2:00 AM, Rekha Benada > > wrote: > >> Hi, >> >> I am developing a product in Ruby on Rai