Re: [Rails] Usage of ram for Sunspot Search engine

2013-01-27 Thread keerthi priya
Thanks guys. but NewRelic is not free for production for development it is free. I have increased my ram to 1GB it is working good now. On Fri, Jan 25, 2013 at 9:25 PM, Colin Law wrote: > On 25 January 2013 15:42, Hassan Schroeder > wrote: > > On Fri, Jan 25, 2013 at 2:44 AM, Colin Law > wrote

Re: [Rails] Re: store pdf directly to amazon

2013-01-27 Thread Saravanan P
ok Tamouse Thank You. let me try this. :) On Sun, Jan 27, 2013 at 2:28 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > On Sat, Jan 26, 2013 at 9:01 PM, Saravanan P > wrote: > > I dont think it will helpful, below is my code, > > > > // in my model > > > > content = File.read

Re: [Rails] case study

2013-01-27 Thread Jim Ruther Nill
On Mon, Jan 28, 2013 at 6:27 AM, oto iashvili wrote: > hi, > > i' trying to re-create my project from php to rails. But now Im faced with > a pb to witch I had solution with php, but I cant figure how to make it > work with rails > > here my tables > > ads > id > category_id > title > text

[Rails] case study

2013-01-27 Thread oto iashvili
hi, i' trying to re-create my project from php to rails. But now Im faced with a pb to witch I had solution with php, but I cant figure how to make it work with rails here my tables ads id category_id title text ad_real_estate_details id ad_id nb_room floor ad_car_details i

Re: [Rails] Help displaying text

2013-01-27 Thread Hassan Schroeder
On Sun, Jan 27, 2013 at 11:31 AM, Dave Castellano wrote: > @formatted_question[:a] contains text with HTML markup. I want to > display it in a field so I can control its vertical and horizontal size > on the page. When it is displayed on the page now, rather than > interpreting the HTML, it is o

[Rails] Help displaying text

2013-01-27 Thread Dave Castellano
Apologies in advance ...this may be a really dumb question but here goes. @formatted_question[:a] contains text with HTML markup. I want to display it in a field so I can control its vertical and horizontal size on the page. When it is displayed on the page now, rather than interpreting the HTML,

[Rails] Lazy testing of rails applications

2013-01-27 Thread Hans
I have problem with applying a test driven development as It takes too long time and effort for the kind of applications that I develop as an application developer (working alone) However, after a while., also my applications become so complicated that changing one part has effect on other parts

[Rails] contact form

2013-01-27 Thread oto iashvili
Hi I would like to have on my website a contact form: name, email, subject (drop-down list), a message, all this that would be dave in db, and a backend (admin) to answer questions + some options like filtering by subject, sort by date , ... does know a gem that exists already or an app that wo

Re: [Rails] Re: store pdf directly to amazon

2013-01-27 Thread tamouse mailing lists
On Sat, Jan 26, 2013 at 9:01 PM, Saravanan P wrote: > I dont think it will helpful, below is my code, > > // in my model > > content = File.read "#{Rails.root}/app/to/mytemplate.html.erb" > template = ERB.new(content) > html_content = template.result(binding) > pdf= WickedP

[Rails] Nested form for a has_one model that already exists

2013-01-27 Thread Michael Linfield
Here's the gist of my problem: (using formtastic) Models: Person (has_one :color) Color So I have this database full of already populated Color entries via a whole separate controller + views for creating Colors. When creating a person, I want to be able to select a Color object without creating

[Rails] Updating table using UJS

2013-01-27 Thread Abhishek Thayyil
Hi all, I have an application in which i am displaying employee details, based on the onChange event of the employee's group combobox i need to update the table contents.Below is the code so far done. new.html.erb <%= form_for (@employee) do |f| %> ...

Re: [Rails] Best practice to handle this

2013-01-27 Thread tamouse mailing lists
On Sat, Jan 26, 2013 at 6:58 AM, Linus Pettersson wrote: > I have a model which has a field that can have three values only. I store > the value in the database as an integer, 0, 1 or 2, but when I display it I > want a more appropriate text. And, I want it to be translatable using i18n. > > Let's