[Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread shamna m.
i try to Install and configure PHP apt-get install php5-fpm php-pear php5-common php5-mysql php-apc php5-gd it says php5 is not installed -- 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

[Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread shamna m.
i try to Install and configure PHP apt-get install php5-fpm php-pear php5-common php5-mysql php-apc php5-gd it says coudn't find the package php5 -- 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] Re: Tomcat + Ruby + REST support

2013-07-11 Thread Shubhada S.
I think you need to read more on exactly what REST means... Thanks Hassan. Can you please provide any good document for understanding REST? Regards, Shubhada -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Do I Edit the Migration Too to Show the Belongs To

2013-07-11 Thread Colin Law
On 11 July 2013 06:55, Peter pe...@poproj.com wrote: Hi Everyone, Do I edit the corresponding migration also to show the belongs_to (and the has_many)? I have a many to many relationship where I am using the has_many :through association. When I place in the individual classes the 'has_many

Re: [Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread Colin Law
On 11 July 2013 07:49, shamna m. li...@ruby-forum.com wrote: i try to Install and configure PHP apt-get install php5-fpm php-pear php5-common php5-mysql php-apc php5-gd it says coudn't find the package php5 Which OS and version are you using? Show us the exact message you get. Copy/Paste the

[Rails] Re: Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread shamna m.
Colin Law wrote in post #1115107: On 11 July 2013 07:49, shamna m. li...@ruby-forum.com wrote: i try to Install and configure PHP apt-get install php5-fpm php-pear php5-common php5-mysql php-apc php5-gd it says coudn't find the package php5 Which OS and version are you using? Show us the

[Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread shamna m.
/tmp$ apt-key add /tmp/nginx_signing.key OK tbi@tbi-desktop:/tmp$ echo deb http://nginx.org/packages/ubuntu/ lucid nginx /etc/apt/sources.list bash: /etc/apt/sources.list: Permission denied tbi@tbi-desktop:/tmp$ echo deb-src http://nginx.org/packages/ubuntu/ lucid nginx /etc/apt/sources.list

[Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread shamna m.
tmp$ apt-get install nginx E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread Colin Law
On 11 July 2013 08:42, shamna m. li...@ruby-forum.com wrote: tmp$ apt-get install nginx E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? What has that got to do with your original

Re: [Rails] Re: Re: Error: Trying to install passenger-install-apache2-module

2013-07-11 Thread Colin Law
On 11 July 2013 08:39, shamna m. li...@ruby-forum.com wrote: Colin Law wrote in post #1115107: On 11 July 2013 07:49, shamna m. li...@ruby-forum.com wrote: i try to Install and configure PHP apt-get install php5-fpm php-pear php5-common php5-mysql php-apc php5-gd it says coudn't find the

[Rails] multiple image upload

2013-07-11 Thread mack gille
hi..i need to upload multiple image upload at a time in my application.i searched and got the carrierwave gem as a solution,but i find that only one image at a time.but i need to upload multiple images at a time using single the button uploadimage. how can i overcome this problem. thankyou

Re: [Rails] Re: Tomcat + Ruby + REST support

2013-07-11 Thread Hassan Schroeder
On Wed, Jul 10, 2013 at 11:58 PM, Shubhada S. li...@ruby-forum.com wrote: Can you please provide any good document for understanding REST? http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm is a good place to start. HTH, -- Hassan Schroeder

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

2013-07-11 Thread Farukh D.M
Hi, I am stuck in a weird situation where in my production environment, an asset is being attempted to compress while rendering a view. I've all my assets put into public/assets folder via rake assets:precompile production.rb has following configurations:

Re: [Rails] multiple image upload

2013-07-11 Thread Walter Lee Davis
Have you read this page yet: https://github.com/carrierwaveuploader/carrierwave/wiki Toward the bottom of the page, there is a link that will help you. Thank you for a better question! Walter On Jul 11, 2013, at 6:36 AM, mack gille wrote: hi..i need to upload multiple image upload at a time

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

2013-07-11 Thread mike
On Thursday, July 11, 2013 7:24:34 AM UTC-4, farukhdm wrote: Hi, I am stuck in a weird situation where in my production environment, an asset is being attempted to compress while rendering a view. I've all my assets put into public/assets folder via rake assets:precompile

[Rails] How to move create method into worker(sidekiq)?

2013-07-11 Thread Anton Ipatov
how to move create method into worker(sidekiq)? photos_controller.rb def create @project = Project.find(params[:project_id]) @photo = @project.photos.build(params[:photo]) @photo.user = current_user if @photo.save redirect_to image_upload_project_path(@project) endend

[Rails] Hide URL from view

2013-07-11 Thread hara acharya
Hi, I have a button as below. %= button_to('On', @userdetail.url + '?value=1', :method = post, :remote = true, :disable_with = 'loading...') % Here @userdetail.url is a external URL, and I don't want to show the url in view source for users. How can I create a controller action to do the

[Rails] Insights for SQL, cache, gem, regarding performance issues.

2013-07-11 Thread Nalesso Moreira
Hi there, I would like to know some ideas from different people upon this performance issue I am going through. I contribute to a gem named impressionisthttps://github.com/charlotte-ruby/impressionist/issues/94, It basically saves an 'impression' of a end user. Everything works fine, I'm

[Rails] Nested attributes - not working in forms

2013-07-11 Thread marcel . jira
Hi! I also posted this on railsforumhttp://railsforum.com/viewtopic.php?id=56824but then I realized this is probably not the best place to get answers for this problem. So, sorry for this crosspost... I also want to apologize for this long message. I just wanted to provide all information -

Re: [Rails] how to upload multiple images in rails

2013-07-11 Thread Robby O'Connor
What he said, speak in full words, Learn to google, use stackoverflow.com -- Odds are question is answered there. On 7/10/2013 10:36 AM, Walter Lee Davis wrote: Please, for your own sake, take an hour and read this entirely: http://www.catb.org/esr/faqs/smart-questions.html I can only speak

[Rails] [JOB] Sr. S/W Engineers to 150k - NYC

2013-07-11 Thread phpjobz
An exciting and already successful NYC startup in the enterprise resource management space is looking to double their team in the next few months. The company is VC-backed and is already operating successfully with a strong revenue. They are looking for smart and passionate software engineers

[Rails] Re: Hide URL from view

2013-07-11 Thread Robert Walker
hara acharya wrote in post #1115165: Hi, I have a button as below. %= button_to('On', @userdetail.url + '?value=1', :method = post, :remote = true, :disable_with = 'loading...') % Here @userdetail.url is a external URL, and I don't want to show the url in view source for users. What, are

[Rails] Learning About Symbols

2013-07-11 Thread Peter
Hi Everyone, I *kind of* get the idea of *symbols*. So I need help to understand them more fully. --- config.yml config: some_setting: 'setting_one' another_setting: - 'element1' - 'element2' So how do I ingest this: yaml = YAML.load('config.yml') Are these true or false?

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

2013-07-11 Thread farukhdm
Thanks for the update. jquery.bxslider.min.js in my case is not part of application.js I have added jquery.bxslider.min.js to pre-compile path also, so that it can be loaded independently. Its available in public/assets folder too. You said I'm not surprised it is re-compiling the source code