[Rails] Re: paperclip question

2010-04-05 Thread hansraj
You can do it by just writing a rake task which takes in the already uploaded images one by one and then reprocess them and upload them again. This will take care of the small and other styles of the images. Hope this helps. --Hansraj On Apr 5, 10:13 am, bramu...@gmail.com bramu...@gmail.com

[Rails] deciml

2010-04-05 Thread Tom Mac
Hi In my table I have t.decimal :rent, :precision = 12, :scale = 2 But when ever I enter a large value like 1234567890333.465 To the table it is stored as 99.99 I would like to know how active record validation can be applied here? Thanks Tom -- Posted via

[Rails] Re: Help needed on Select Form

2010-04-05 Thread Charanya Nagarajan
Hi, According to my consideration, You will need the databases to be filled.I assumed that You have a table called OS and Device.And Os and device tables are associated to each other like OS belongs to Device That is how from the device's id we can get the list of OS for that device in @os in

[Rails] css sprite best practices

2010-04-05 Thread huang zhimin
Hi all, Last week I wrote a post css sprite best prachticeshttp://www.huangzhimin.com/entries/190-css-sprite-best-practices. The practices follow the idea Convention Over Configuration to do the css sprite automatically (by using my css_spritehttp://github.com/flyerhzm/css_sprite gem/plugin), you

[Rails] Re: Security issue in app

2010-04-05 Thread DmitryPush
%=h @text_from_user % The point is 'h' helper. http://guides.rubyonrails.org/getting_started.html - will be very useful to read. Good luck. On Apr 5, 2:11 pm, Tushar Gandhi li...@ruby-forum.com wrote: Hi, I am facing a following problem:-  I have app in which user can edit his/her personal

[Rails] Re: Security issue in app

2010-04-05 Thread Tushar Gandhi
Thanks Priyanka It is working. Priyanka Pathak wrote: Hi, Use rails HTML escaping method - html_escape(s) or h(s) to fix that issue. Thanks, Priyanka Pathak -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Re: deciml

2010-04-05 Thread Tom Mac
Hi Thanks for all your reply Tom -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-04-05 Thread Heinz Strunk
That means if I do a db:migrate:reset (recreate the db with Ruby 1.9) that error would disappear? -- 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

Re: [Rails] syntax error, unexpected '\n', expecting tASSOC

2010-04-05 Thread Colin Law
On 5 April 2010 14:28, John Merlino li...@ruby-forum.com wrote: Hey all, I get the following error. Now I know it's related to a curly brace, but it seems that all curly braces are properly in place. So I'm not sure why I get this error:  SyntaxError in DashboardController#panels

[Rails] Re: please help; form_for passes nil

2010-04-05 Thread Frederick Cheung
On Apr 5, 9:46 pm, dirtbug nyoun...@gmail.com wrote: Thanks for the reply. I've now fixed the html (removed the table), but it didn't fix the problem. The edit view is: You've still got a form nested inside a form (button_to creates a form) Fred h1Editing orf/h1 % form_for @orf do |f| %