[Rails] Nested Routes allow for actions only if IDs match??

2009-06-23 Thread Ahad Amdani
Hello, I'm encountering a very strange issue and I've identified behavior I don't quite understand. I have a design in which a full model exists with sub-screens for each of the pages worth of data input. Each screen goes through validation, and then updates the overall model with the validated

[Rails] Re: HOW TO SPECIFY CSS

2009-06-23 Thread D
Did u try stylesheet_link_tag(mystyle) and put mystyle.css inside public/stylesheets ? On Jun 23, 11:10 am, Newb Newb rails-mailing-l...@andreas-s.net wrote: Hi... i used paulca-phone_codes plugin for country code.and it works. %= f.select :country_code,

[Rails] Re: HOW TO SPECIFY CSS

2009-06-23 Thread Ahad Amdani
Newb Newb wrote: Hi... i used paulca-phone_codes plugin for country code.and it works. %= f.select :country_code, PhoneCode.options_for_select(:prefix)% what i want to know is how to apply css class for this.when i tried like below it doesnot work %= f.select :country_code,

[Rails] Re: newbie need help

2009-06-23 Thread Tonypm
All you really need to get started is to get your first scaffold created. As already mentioned the ruby on rails guides are absolutely excellent. Congrats to those who wrote them by the way. If you follow through the getting started guide http://guides.rubyonrails.org/getting_started.html

[Rails] Re: Rails + IE Problem

2009-06-23 Thread srinu
It would be great if you could provide more information - what yello icon coming up (screenshot) - what actually doing in that page Thanks Srinivas On Jun 22, 6:28 pm, Hemant Bhargava rails-mailing-l...@andreas-s.net wrote: Champ, Yes i used firebug.. Seems like nothing is breaking in

[Rails] Re: can't modify frozen hash

2009-06-23 Thread srinu
Can you print the @something.frozen? in log file. If you are getting it as true, you may have to digg @something then. It seems not just the a record from database. Thanks Srinivas On Jun 21, 1:30 am, skumar sadeeshkum...@gmail.com wrote: Hi, When I upgraded my rails application to rails

[Rails] Re: How to properly override ActiveRecord::Base.find

2009-06-23 Thread Arzumy
Hey man, I used something like this with great success! (so far... since I just used like few minutes ago, nothing broke and all test passed) In Rails 2.2.2 class self def find(*args) args.first == :all ? self.with_scope(:find = {:conditions = [:published = true]}) {super} : super

[Rails] serialize methods by to_json

2009-06-23 Thread Gregory Peck
Hello, Is there possible to pass arguments for serialized methods using to_json?? I want to serialize my collection of users with income and outcome which is calculate by methods: collection.to_json(:methods = [:income, :outcome]) But, what if I need to pass some arguments to method :outcome ?

[Rails] syntax error, unexpected tINTEGER, expecting $end

2009-06-23 Thread LearnByDoing
Please help me solve the following error message: syntax error, unexpected tINTEGER, expecting $end I have this model: Code: 1. class GeoDatum ActiveRecord::Base 2. end The database contains the table geo_data, which contains the zip_code column, filled with zip codes. I get the

[Rails] Re: One Quick help needed !

2009-06-23 Thread Sandip Ransing
Thanks, fred ! --~--~-~--~~~---~--~~ 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-talk@googlegroups.com To unsubscribe from this group, send email to

[Rails] Re: Not really a Rails post but...

2009-06-23 Thread GS
I just wanted to chime in and say that I've gained utility from dale's post and welcome posts such as this as I find them the most interesting and thought provoking kind of posts. Before reading this thread i would have had no idea what a Levenshtein distance is, but now i can file that away for

[Rails] GWT_on_Rails

2009-06-23 Thread yasir javed
Hi, Can anyone please help me how to install Google Web Toolkit GWT_on_Rails I have GWT v.7 latest Ruby on Rails 2.4 Whenever I run the following command to install from the mentioned link, it gives me error that no plugin found on this address script/plugin install

[Rails] Re: Modules and models

2009-06-23 Thread Lee
We want to namespace our code to avoid conflicts with any framework code. For example, we had a method called 'changed' in our models which clashed with an ActiveRecord-based rmethod of the same name and this led to many hours of debugging. My research suggests it is valid to namespace models

[Rails] Session timeout using prototype

2009-06-23 Thread Valentino Lun
Dear all I want my rails web application include a timeout function using prototype.. say, if the browser is idle for 15 mins, then it automatically redirect to the admin/logout, where admin is my controller name, logout is the method name. I have google around and could not find the

[Rails] Re: Session timeout using prototype

2009-06-23 Thread Andrew Timberlake
On Tue, Jun 23, 2009 at 11:28 AM, Valentino Lunrails-mailing-l...@andreas-s.net wrote: Dear all I want my rails web application include a timeout function using prototype.. say, if the browser is idle for 15 mins, then it automatically redirect to the admin/logout, where admin is my

[Rails] Re: Rails + IE Problem

2009-06-23 Thread Hemant Bhargava
Champ.. Installed this Tool .. But dont know how to use it .. :'( So take me into right direction .. How can i know the line number.. ? Max Williams wrote: Hemant Bhargava wrote: Hey Dudes, Once again, seeking for ur help :) Actually the thing is mine code is working fine in Mozilla/Any

[Rails] Reset session if user click back button in browser

2009-06-23 Thread Valentino Lun
Dear all Can rails reset session if user click the back button in browser? say, 1. go to http://myapp.com/controller 2. Search something and display the result 3. go to http://another_server.com 4. click back button, I still can see the result in browser, but I don't want to see the browser

[Rails] Re: Session timeout using prototype

2009-06-23 Thread Valentino Lun
Thanks for your reply I think this is not work in my case My page uses form_remote_tag to search the result, so it display the result without reloading the whole page...The setTimeout function will not reset the timer if I use form_remote_tag for searching... Any idea? Many thanks Valenino

[Rails] rails 2.3 view caching in development

2009-06-23 Thread trybeee
Anybody knows hot to disable views caching in development on rails 2.3? --~--~-~--~~~---~--~~ 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

[Rails] Re: opening old project

2009-06-23 Thread Robin Fisher
On 23 June, 00:19, Luciano bonach...@gmail.com wrote: Hello Marnen, I'm sorry for this short description! this is the erro I got: It looks like you're missing a gem as well. You should check what gems are required for this project. Robin

[Rails] Re: Session timeout using prototype

2009-06-23 Thread Andrew Timberlake
On Tue, Jun 23, 2009 at 12:52 PM, Valentino Lunrails-mailing-l...@andreas-s.net wrote: Thanks for your reply I think this is not work in my case My page uses form_remote_tag to search the result, so it display the result without reloading the whole page...The setTimeout function will not

[Rails] Re: rails 2.3 view caching in development

2009-06-23 Thread Andrew Timberlake
On Tue, Jun 23, 2009 at 10:16 AM, trybeeetryb...@gmail.com wrote: Anybody knows hot to disable views caching in development on rails 2.3? This should already be set in config/environments/development.rb config.action_controller.perform_caching = false Andrew Timberlake

[Rails] Re: GWT_on_Rails

2009-06-23 Thread Robert Walker
yasir javed wrote: script/plugin install http://gwt-on-rails.googlecode.com/svn/trunk/gwt_on_rails The URL in is command is incorrect. It should be: http://gwt-on-rails.googlecode.com/svn/trunk The part following the URL from the project source page is intended to be the name of the folder

[Rails] render partial but content is hidden

2009-06-23 Thread malkifel
Hi, I have a strange problem: I try to use replace_html (rjs) for replace object fields with partial contains remote_form_for to edit the object It works well but the inserted form is coming hidden. (I also tried to toggle it, or show but - nothing . it stays hide) when I try to replace the

[Rails] Re: render partial but content is hidden

2009-06-23 Thread Frederick Cheung
On Jun 23, 1:08 pm, malkifel malki...@gmail.com wrote: Hi, I have a strange problem: I try to use replace_html (rjs) for replace object fields with partial contains remote_form_for to edit the object It works well but the inserted form is coming hidden. (I also tried to toggle it, or

[Rails] Re: Reset session if user click back button in browser

2009-06-23 Thread Ar Chron
Valentino Lun wrote: Dear all Can rails reset session if user click the back button in browser? say, 1. go to http://myapp.com/controller 2. Search something and display the result 3. go to http://another_server.com 4. click back button, I still can see the result in browser, but I

[Rails] Re: Rails error

2009-06-23 Thread Frederick Cheung
On Jun 23, 2:51 pm, Lloyd Linklater rails-mailing-l...@andreas-s.net wrote: I am trying to learn rails from Agile Web Development with Rails, 3rd Edition and am having troubles.  I get an error when I try to run this command on pg 68: ruby script/generate scaffold product \ title:string

[Rails] Re: Rails error

2009-06-23 Thread Lloyd Linklater
Frederick Cheung wrote: On Jun 23, 2:51�pm, Lloyd Linklater rails-mailing-l...@andreas-s.net wrote: It means that I cannot progress past page 68. What am I doing wrong? is that backslash there in the command you are actually typing ? Fred There is in the book. -- Posted via

[Rails] Re: Rails error

2009-06-23 Thread Lloyd Linklater
Lloyd Linklater wrote: Frederick Cheung wrote: On Jun 23, 2:51�pm, Lloyd Linklater rails-mailing-l...@andreas-s.net wrote: It means that I cannot progress past page 68. What am I doing wrong? is that backslash there in the command you are actually typing ? Fred There is in the book.

[Rails] Re: syntax error, unexpected tINTEGER, expecting $end

2009-06-23 Thread Hassan Schroeder
On Tue, Jun 23, 2009 at 1:52 AM, LearnByDoing ease...@gmail.com wrote:     GeoDatum.find_by_zip_code(95035)    SyntaxError: compile error   1. class CreateGeoData ActiveRecord::Migration   2.   def self.up   3.     create_table :geo_data do |t|   4.       t.column :zip_code,  :string

[Rails] Rails Hosting: Can't make up my mind

2009-06-23 Thread Ben Vishny
I've been irresolute about who to choose for hosting for the past few days. Right now my two favorites are Rails Playground and Blue Box Group. Anyone have any advice or experience with them? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: serialize methods by to_json

2009-06-23 Thread Nicholas Henry
I don't believe you can pass params using the methods option. One approach would be to calculate the outcome on the collection before calling to_json. def calculate_outcome(arg) @outcome = # do calculation with arg end def outcome @outcome end collection.each {|c| c.calculate_outcome(arg)}

[Rails] Re: Rails Hosting: Can't make up my mind

2009-06-23 Thread Robby Russell
You might also get in touch with us as well. * http://railsboxcar.com On Tue, Jun 23, 2009 at 7:36 AM, Ben Vishnyrails-mailing-l...@andreas-s.net wrote: I've been irresolute about who to choose for hosting for the past few days. Right now my two favorites are Rails Playground and Blue Box

[Rails] can't get remote_function working on rails 2.3.2

2009-06-23 Thread Naija Guy
I've tried moving the code around in different ways, but so far I haven't gotten remote_function to work for me (I'm using Rails 2.3.2 on my Mac). I want to make an AJAX call when I double-click a word on my page, and the Javascript function is being called when the ondblclick event is fired,

[Rails] render_to_string inside method shared across several controllers

2009-06-23 Thread christer
I use render_to_string to generate short reports (in HTML) under certain conditions when users access my application. The reports are stored in the database and uses database information at the time they are generated (and can thus not be generated later, e.g; when you want to consult them). The

[Rails] Re: Session timeout using prototype

2009-06-23 Thread Ben Vishny
say, if the browser is idle for 15 mins, then it automatically redirect to the admin/logout, where admin is my controller name, logout is the method name. To get it to only log them off if the browser has been idle for 15 minutes you could create a javascript listener. The easiest way would be

[Rails] Re: syntax error, unexpected tINTEGER, expecting $end

2009-06-23 Thread Frederick Cheung
On Jun 23, 9:52 am, LearnByDoing ease...@gmail.com wrote: Please help me solve the following error message:     syntax error, unexpected tINTEGER, expecting $end Looks like you have a type column (which activerecord uses for single table inheritance) but you're actually storing data (such

[Rails] Re: Rails Hosting: Slicehost vs. Rimuhosting

2009-06-23 Thread InventoryTrackers
Nayeem, I'm sorry you've not found a VPS provider that can help you in your learning curve. I've been amazed how helpful BlueBoxGroup - http://www.blueboxgrp.com/ has been for me! Even though I have only one VPS with 1 meg RAM these people treat me as though we're partners. They answer my

[Rails] Re: Session timeout using prototype

2009-06-23 Thread Ben Vishny
Ben Vishny wrote: // idle.js // Adapted from // http://www.andrewsellick.com/67/simple-javascript-idle-state-using-//prototype // 15 min in ms var idleTime= 90; var timeOut = ”; function init() { new Ajax.Request('/login/inactivity?do=check', {asynchronous:true,

[Rails] Twitter gem documentation?

2009-06-23 Thread Jason Burgett
I've just started a new project using the twitter gem http://twitter.rubyforge.org/ I've managed to authenticate a user and create an object out of it. Then I've pulled that user's timeline and created an array out of their tweets. Now I'd like to find a way to parse specific information out of

[Rails] find_by should return a default

2009-06-23 Thread Jens --
Hi, I am puzzlin for quite a while on this. I use find_by methods to retieve AR objects. In some cases find_by will return nil if there is no match. However I would like to have find_by return a default object instead. Is there a way to overload that particular find_by method? Or whats the best

[Rails] Re: Your expert views on rails code security needed !

2009-06-23 Thread Marnen Laibow-Koser
Sandip Ransing wrote: Marven, If you're going to use my name, please spel it correctly. :) Thanks for your reply ! I think, you missunderstood what i am saying. Let me explain little deep. Suppose, I have rails application as a product, I wanted to deploy it for many clients. They

[Rails] Re: find_by should return a default

2009-06-23 Thread Philip Hallstrom
I am puzzlin for quite a while on this. I use find_by methods to retieve AR objects. In some cases find_by will return nil if there is no match. However I would like to have find_by return a default object instead. Is there a way to overload that particular find_by method? Or whats

[Rails] Order on virtual attribute in has_many

2009-06-23 Thread harm
Hi all, Consider the following models: class Sheep AR::B belongs_to :herd def some_virtual_attribute #returns something sortable end end class Herd AR::B has_many :sheep do def some_method #do something useful end end end I want to be able to do:

[Rails] Re: Modules and models

2009-06-23 Thread Marnen Laibow-Koser
Lee wrote: We want to namespace our code to avoid conflicts with any framework code. I don't see how this will help. Each model is *already* its own namespace, so further namespacing them won't make a difference in this regard. For example, we had a method called 'changed' in our models

[Rails] Re: Rails Hosting: Slicehost vs. Rimuhosting

2009-06-23 Thread Billee D.
khagimoto: Another +1 for Slicehost. On Jun 22, 1:16 pm, khagimoto kumi.hagim...@gmail.com wrote: I know similar topics have been covered before, but I'd like to get a more up-to-date Ruby developer's opinions.  (Please note that I've read similar threads in this group and read a lot of

[Rails] Retrieving image from database to HTML

2009-06-23 Thread Caiuby Freitas
I can upload an image to mysql database, but can´t render it on HTML page. I wrote the following acording to many snipets founded on the web. Inside the controller (classified_controller.rb): def imageload @image = Classified.find(params[:id]) send_data (@image, :filename =

[Rails] Re: find_by should return a default

2009-06-23 Thread Jens --
Thanks Philip. I used something similar to your suggestion Model.find_by_foo() || Model.get_default(). I#d rather be explicit on that. Jens If it were me I'd either make it explicit in the code Model.find_by_foo() || Model.get_default() or extend AR to support find_by_xxx_or_default and

[Rails] Do I lose anything by using legacy databases?

2009-06-23 Thread jmDesktop
If I have information in a legacy database will I be losing anything by using RoR. Can I store configuration information in mysql but display data from my legacy database? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: opening old project

2009-06-23 Thread Matt Jones
You're missing the rubyzip gem. --Matt Jones On Jun 23, 8:13 am, Luciano bonach...@gmail.com wrote: Sijo, thanks for your advice, I installed Rails 1.2.3 but I think Robin is right, I must install some missing gems, I am still getting those gems errors... thanks to all you guys!

[Rails] Re: Rails Hosting: Can't make up my mind

2009-06-23 Thread s.ross
I can vouch for the quality of Boxcar. Great performance, stability and support. I've been with these guys since Rails 1.0 and not a bit of a problem. --steve On Jun 23, 2009, at 7:36 AM, Ben Vishny wrote: I've been irresolute about who to choose for hosting for the past few days. Right

[Rails] Re: Your expert views on rails code security needed !

2009-06-23 Thread Matt Jones
What you're attempting here is equivalent to a DRM system; or in simpler terms, giving someone a lock and the key and expecting that the lock will provide protection. The code's got to be run somehow, and if the clients control the server, they can get at it. Encrypted source files can be

[Rails] Re: Nested Routes allow for actions only if IDs match??

2009-06-23 Thread Matt Jones
Have you tried explicitly setting the URL to post to in the form_for? From the trace, it looks like it's trying to generate a route to edit_full_quote_ho without specifying the parent model. [...@full_quote_ho_model, @full_quote_ho] might work as well. --Matt Jones On Jun 23, 2:02 am, Ahad

[Rails] performance improvement in method to strip non-numeral characters from string ??

2009-06-23 Thread Vipin
I need to write a method such that when we pass on a string to it, it returns a substring out of it. returned string is such that it consists of numerals only. All the characters other than numerals are stripped away. e.g. 2009-05-30 10:25:15 UTC == 20090530102515 I have written the following

[Rails] Re: opening old project

2009-06-23 Thread Luciano
thank you very much Matt! []s Luciano On Jun 23, 2:17 pm, Matt Jones al2o...@gmail.com wrote: You're missing the rubyzip gem. --Matt Jones On Jun 23, 8:13 am, Luciano bonach...@gmail.com wrote: Sijo, thanks for your advice, I installed Rails 1.2.3 but I think Robin is right, I

[Rails] Re: Your expert views on rails code security needed !

2009-06-23 Thread Paolo Montrasio
Sandip, I never used it myself but http://www.rubyencoder.com/ seems to be what you're looking for. It's not free but is not that expensive and they have a free trial. Would you mind giving some feedback on the forum if you try it? Paolo Sandip Ransing wrote: Marven, Thanks for your reply

[Rails] Re: performance improvement in method to strip non-numeral characters from string ??

2009-06-23 Thread Frederick Cheung
On Jun 23, 6:37 pm, Vipin sh.vi...@gmail.com wrote: I need to write a method such that when we pass on a string to it, it returns a substring out of it. returned string is such that it consists of numerals only. All the characters other than numerals are stripped away. e.g. 2009-05-30

[Rails] Re: Rails Hosting: Can't make up my mind

2009-06-23 Thread Bosko Ivanisevic
Take a look at http://www.linode.com. I have two sites (with quite low traffic): http://cuisine4you.net and http://pragdevnotes.com on it without any problems. One possible drawback is that you have to set up everything from scratch. On the other hand you have full control over your virtual host.

[Rails] IE7 Cookies not persisting. Please help.

2009-06-23 Thread Shannon
I'm new to cookies and rails so I apologize for my ignorance. I'm using Javascript to store persistent cookies using the following code (taken from the O'Reilly Javascript book): Cookie.prototype.store = function( daysToLive, path, domain, secure ) { var cookieval = ; for ( var prop in

[Rails] ails based shopping cart/e-commerce engines/starter apps.

2009-06-23 Thread Wes Gamble
All, I'm looking at possibly working on an e-commerce site prototype which will require all of the standard elements (product management, shopping cart, hooks to payment, etc.), and I was wondering if anyone had any recommendations or info. on starter app type things in this area. I'm not

[Rails] Re: ails based shopping cart/e-commerce engines/starter apps.

2009-06-23 Thread Wes Gamble
er, Rails based :). -- 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-talk@googlegroups.com To

[Rails] Re: Not really a Rails post but...

2009-06-23 Thread Lloyd Linklater
timr wrote: Here is a third proposal--What about breaking the text into chunks-- one-word fragments, two-word fragments, three-word fragments and then doing a subtraction of one array of fragments from the other (fragments generated from 2nd sentence)? A perfect match would leave an empty

[Rails] Problem with ajax and nested forms

2009-06-23 Thread Adrian D
Hi everybody, I have the following problem: My model 'event' has many 'eventdates'. I use a nested form to edit these events and its eventdates. Everything gets updated using js, which works fine. def update @event = Event.find(params[:id]) respond_to do |format| if

[Rails] Re: IE7 Cookies not persisting. Please help.

2009-06-23 Thread Shannon
A few more details: - I don't have any other cookies for the domain - There is not an underscore in the domain/subdomain - My privacy setting are at their lowest (accept all cookies) - The cookie is there and accessible until I close the browser and restart - I'm sure there's a simple Rails

[Rails] Won't display characters following '\267'

2009-06-23 Thread Nik
Hello! I use MySQL and making sure it is UTF-8 and in my view the character set is also UTF-8. But when I display the text whose input came from either an antiword.exe or WIN32OLE output of a MS Word document in a textarea. Text fail to show immediately after a strange character that shows up in

[Rails] Re: Won't display characters following '\267'

2009-06-23 Thread Philip Hallstrom
You could try... require 'iconv' clean_str = Iconv.new('UTF-8//Ignore', 'UTF-8').iconv(messy_str) It doesn't always work though... you might need to catch Iconv::InvalidCharacter... Worth a try though and has gotten me out of some of this mess with bad source data. On Jun 23, 2009, at

[Rails] Re: Problem with ajax and nested forms

2009-06-23 Thread Adrian D
Ok, found the problem. The submit-event wasn't captured anymore. Thanks for reading. On 23 Jun., 21:48, Adrian D adrian.debbe...@googlemail.com wrote: Hi everybody, I have the following problem: My model 'event' has many 'eventdates'. I use a nested form to edit these events and its

[Rails] Re: GWT_on_Rails

2009-06-23 Thread Yasir
Thanks a lot Robert, it worked. I was missing the space...:) On Jun 24, 12:49 am, Robert Walker rails-mailing-l...@andreas-s.net wrote: yasir javed wrote: script/plugin install http://gwt-on-rails.googlecode.com/svn/trunk/gwt_on_rails The URL in is command is incorrect. It should be:

[Rails] Re: Trying to redirect to an external website

2009-06-23 Thread Bharat
Nothing needed in the controller, in your view, you do the following: %= link_to link.title, link.url, :popup = true % So link here is the object with attributes title and url. You can hard-code these if you want, but in my application I store them in the database so an example of hard-coded

[Rails] Re: Rails Hosting: Can't make up my mind

2009-06-23 Thread heimdull
I don't have experience with either of the two solutions you mentioned but I currently moved my hosting from hostingrails.com to slicehost.com. Both places I had a VPS and they are both sub $25. Very happy with both providers, moved purely on a price issue. Slicehost VPS is $20/month

[Rails] Re: Retrieving image from database to HTML

2009-06-23 Thread nickflux
What are the field names for your classifieds table? On Jun 23, 12:27 pm, Caiuby Freitas rails-mailing-l...@andreas-s.net wrote: I can upload an image to mysql database, but can´t render it on HTML page. I wrote the following acording to many snipets founded on the web. Inside the

[Rails] Re: Do I lose anything by using legacy databases?

2009-06-23 Thread Matthew MacLeod
On Jun 23, 5:59 pm, jmDesktop needin4mat...@gmail.com wrote: If I have information in a legacy database will I be losing anything by using RoR.  Can I store configuration information in mysql but display data from my legacy database? That really depends on what database it is. However,

[Rails] Re: decoding utf - 8 string

2009-06-23 Thread twittwit
pardon. i just realised it works. thanks On Jun 24, 12:54 am, twittwit ytbr...@gmail.com wrote: hello, i tried using html_helpers and it doesn't seems to work properly on my pdf.prawn( prawnto) does anybody know other way to decode utf-8 string ? cheers bryan

[Rails] Re: Won't display characters following '\267'

2009-06-23 Thread Nik
Thanks Phillip for your help! I just tried it and it works great! It display that dot thing. But then because all of my regular expressions did not account for these characters and some fail at where these characters appear. 1 - What do I know even what the right question to ask is... But what

[Rails] decoding utf - 8 string

2009-06-23 Thread twittwit
hello, i tried using html_helpers and it doesn't seems to work properly on my pdf.prawn( prawnto) does anybody know other way to decode utf-8 string ? cheers bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Intro to Behaviour-Driven Development (BDD) with Cucumber - http://bit.ly/ZX6TX

2009-06-23 Thread sbinsider
Cucumber is a framework for writing and executing high-level descriptions of your software’s functionality. Cucumber plays a central role in a development approach called Behaviour Driven Development (BDD). BDD in its grandest sense is about communication and viewing your software as a system

[Rails] Starting ruby script on server's reboot

2009-06-23 Thread serenobs
Hi I'm using passenger + apache. with this combination, how can I start my ruby script on server's reboot? now I type ruby myscript.rb run whenever server reboot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Starting ruby script on server's reboot

2009-06-23 Thread Hassan Schroeder
On Tue, Jun 23, 2009 at 4:47 PM, serenobs seren...@gmail.com wrote: how can I start my ruby script on server's reboot? Like anything else -- invoke it from a script in /etc/init.d . (That is, of course, assuming *nix -- Windows, no idea) -- Hassan Schroeder

[Rails] In-place Editing; State of the Union

2009-06-23 Thread Cory Wilkerson
All, Wants the current State of the Union wrt in-place editing and Rails 2.2 or ? Are folks using the in_place_editor plugin? SuperInPlaceControls (http://os.flvorful.com/super_in_place_controls)? Rolling your own? Getting ready to dig in for a new project and just wanted to see what the

[Rails] cookies.delete doesn't work...?

2009-06-23 Thread Chris Hanks
Hello - I'm trying to have an account information and link bar at the top of the screen, i.e: ch...@example.com | My Profile | Logout This bar should be up there even when the user is on a cached page (the app I'm working on has a lot of database-intensive screens, which luckily are

[Rails] Re: Action caching with multiple domains

2009-06-23 Thread Tim Riendeau
Just for the record I did figure out how to resolve this issue. I was able to resolve it by adding the following to my apache vhost file before the normal proxy rewrites. RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*)

[Rails] Re: Intro to Behaviour-Driven Development (BDD) with Cucumber - http://bit.ly/ZX6TX

2009-06-23 Thread Robby Russell
What happened to asking people to subscribe to RSS feeds? http://skitch.com/robbyrussell/bie2d/google-groups Don't get me wrong, I enjoy the content... but not sure why blog posts are getting auto-posted on a mailing list. Robby On Tue, Jun 23, 2009 at 4:23 PM, sbinsiderr...@pageonepr.com

[Rails] Re: How can I contribute with http://api.rubyonrails.org/ ?

2009-06-23 Thread Eric Fer
Hi pharrington !!! Thanks for your reply :) It's very true this is the doc that I was looking for. The unfortune is that when I look for create_table, the link is this: http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M002191 Again, thanks a lot :) On

[Rails] Re: How can I contribute with http://api.rubyonrails.org/ ?

2009-06-23 Thread Eric Fer
Hi Frederick. Thanks very much for the tip about docrails ;) On Jun 22, 4:35 am, Frederick Cheung frederick.che...@gmail.com wrote: On Jun 22, 2:53 am, pharrington xenogene...@gmail.com wrote: On Jun 21, 9:12 pm,Eric Fereric@gmail.com wrote: Hi everyone. I was looking for a

[Rails] Active Scaffold Error - Ruby 1.8.7

2009-06-23 Thread Cs Webgrl
Hi, I've got an app that I've inherited that uses Active Scaffold. I've never used it before, but am now seeing errors on a page that appear to point to that plugin. The system is Ubuntu using Ruby 1.8.7. I already found a work around for attachment_fu using this Ruby version. Is there

[Rails] Run rake task from Rails controller

2009-06-23 Thread Chem Leakhina
Hi everyone, Could you give me an detail example how can I call rake task from controller in Rails project? Best regards, Leakhina -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Your expert views on rails code security needed !

2009-06-23 Thread Aaron Turner
On Tue, Jun 23, 2009 at 2:02 AM, Sandip Ransingsan2...@gmail.com wrote: Marven, Thanks for your reply ! I think, you missunderstood what i am saying. Let me explain little deep. Suppose, I have rails application as a product, I wanted to deploy it for many clients. They have their own

[Rails] Re: Nested Routes allow for actions only if IDs match??

2009-06-23 Thread Ahad Amdani
Matt Jones wrote: Have you tried explicitly setting the URL to post to in the form_for? From the trace, it looks like it's trying to generate a route to edit_full_quote_ho without specifying the parent model. [...@full_quote_ho_model, @full_quote_ho] might work as well. --Matt Jones

[Rails] Re: render partial but content is hidden

2009-06-23 Thread malkifel
could you be creating invalid html (eg a form nested in another form or something like that) by inserting yourpartialin the precise location that you are ? Fred no, It's a plain table , each row is an object. And I try to replace the fields of the object with little remote_form with

[Rails] :select

2009-06-23 Thread Sijo Kg
Hi This is just an example .I have a model Person with fields first_name, last_name And after entering some records to the people table I tried the sql Person.find(:all,:select = first_name,#{first_name+last_name} as full_name) But this is not working Could anybody please tell how can I

[Rails] How to return List in web services througth ActionWebService

2009-06-23 Thread Hamid Raza
I need to return list of objects(e.g. users, articles etc) through ActionWebService::API::Base class BabyWiseApi ActionWebService::API::Base api_method :is_new_update_available, :expects = [{:login=:string}, {:lastUpdatePerformed=:date}], :returns = [:boolean]