Re: [Rails] How do I use Chef to manage database parameters?

2013-11-08 Thread Emil S
Chef has this thing called DataBags ( http://docs.opscode.com/essentials_data_bags.html ) . You can use the knife command to set the database password from your workstation. All the nodes which are registered with the server should be able to search the data bag and retrieve the password. - Emil

[Rails] doc:app does not include html and js files

2013-11-08 Thread Hans
Using rails 3.2 and ruby 1.9.3 and want to document my application rake task doc:app documents all rb files, but the files in my view folders are not documented How to document that part of an application ? Any advices would be much appreciated -- You received this message because you are

Re: [Rails] Export CSV

2013-11-08 Thread Colin Law
On 8 November 2013 06:24, Daynthan Kabilan dayantha...@gmail.com wrote: Hi friends, i am using csv export on my application. in my view file code is %- headers = [Transaction ID, Activity ID, Product Name,Customer Name, Ticket code] -% %= CSV.generate_line(headers).strip % %if

[Rails] Re: Ruby on Rails for Beginners

2013-11-08 Thread Nicolas Sebrecht
The 06/11/13, Ben Curren wrote: Hi, Every now and then I see people asking about the best way to learn Ruby... Checkout [1]Getting Started with Ruby on Rails with several recommended Ruby tutorials. The mailing list archives are plenty of such requests. ,-) -- Nicolas Sebrecht

[Rails] Image Fingerprinting in Rails 4

2013-11-08 Thread Allen
Hi, I recently discovered after updating to Rails 4 after a cap deploy when my assets were compiled that it no longer generates BOTH a fingerprinted AND non-fingerprinted version of my images. This is a rather big issue, as our Rails project is really just an API server in the backend and we

[Rails] Re: Assets without fingerprint with rails 4

2013-11-08 Thread Allen
Also have this issue. Anyone can help with this? On Tuesday, November 5, 2013 11:49:32 PM UTC+8, Kaluzny Olivier wrote: Hi, Rails 4 seems to don't add asset file with original filename (eg: test.jpg), But only fingerprint version (eg: test_hash.jpg). This is not very cool for mailer. If I

[Rails] create action, fails validation, renders new and then calls the index action silent the background?

2013-11-08 Thread johnnybutler7
Hi Guys, Strange issue going on, cant get to the bottom of it. I have a bog standard form which submits to the create action fine. If the validation fails however the new action is rendered with the appropriate errors, however in the logs i notice the index action is called silently and I can

[Rails] how to search the phrase of numbers

2013-11-08 Thread Dina Z.
Hi,Dear all, I am trying to search the phrase of numbers in a html page in the sentence below: div class=Results id=yui_3_11_0_4_1383957936583_5009(253 items)/div I used this piece of code, but it does not work, limit= page.search(div[class=Results]).search(div).gsub(items,) begin