[Rails] Is it possible to have file manage box in SciTE editor

2009-01-31 Thread Dharmdip Rathod
Is it possible to have file manage box in SciTE editor, I have search but i am not getting proper idea. if any one have idea please share .. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Hash names with white spaces

2009-01-31 Thread Thomas R. Koll
Hi Stefano, First of all, migrate your database. Legacy dbs suck and there's no reasons why to preserve them for too long. About your problem: Both params['first name'] and params[:'first name'] will work. ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Thomas R. Koll
Hi, This is not a rails problem but an issue for your webserver. I can only speak for unix systems but the path is usually the same: user sends a request to port 80, the webserver (e.g. apache) accepts it and decides wether to deliver a file or proxy the request to the mongrel. Usually there

[Rails] What and where is the method register! in restful authentication?

2009-01-31 Thread thomasalbert
A newbie question - I am learning restful authentication but I cant find what or where the method register! is when used in the following code: @user.register! if @user @user.valid? Thanks. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: Hotlink Prevention in Ruby?

2009-01-31 Thread sunstalker
Thank you both for your feedback! In the meantime i developed the idea to use a token to establish a trust between a mod_anything running in the apache context and the rails app. The idea is to create a session token by a simple web service (trust service) during first page request and to

[Rails] Re: What and where is the method register! in restful authentication?

2009-01-31 Thread Ramon Tayag
User acts as a state machine. Transitions automatically get methods that are named after them with a ! at the end. Look for a transition called register and it shows from what state to what state this register can occur. Ramon Tayag On Sat, Jan 31, 2009 at 5:15 PM, thomasalbert

[Rails] Re: Tag clouds

2009-01-31 Thread Saravanan Krishnan
Hi Vivek, As Andrew's suggesstion try the acts_as_taggable_on plugin/gem and the associtated tag_cloud helper Refer this links also http://wiki.rubyonrails.org/rails/pages/Acts+As+Taggable+Plugin http://noobonrails.blogspot.com/2005/11/using-actsastaggable-in-rails-quick.html Thanks

[Rails] Re: Hash names with white spaces

2009-01-31 Thread Stefano Bonomi
Hi Tom, first of all many thanks for your suggestion. I cannot migrate from the legacy database because it is still populated by an electronic PLC wich has only MS ACCESS (aargh!) or MS SQL connectors. The same for DB field names. They where defined five years ago and so I must live with

[Rails] Re: export a table data to xml file using Ruby on Rails

2009-01-31 Thread Saravanan Krishnan
Hi Devi, Try with following codes. let me know if you find any issues def xmlfile @records = Company.find(:all) render :xml=@records.to_xml end def xmlfile @records = Company.find(:all) render :partial = '/company/xmlfile', :layout = false, :content_type = 'application/xml' end

[Rails] Time picker working in both rails and ajax

2009-01-31 Thread william
Hi all, Am new to ruby on rails .I have some time pickers working alone in rails and when am using ajax it's not working . Could any one please give me a good solution for this problem . Regards William S --~--~-~--~~~---~--~~ You received this message because

[Rails] possible to set gems path?

2009-01-31 Thread johnny
I've installed ruby and rubygems on leopard. when i install a gem successfully and run require gemname in irb it fails: irb(main):001:0 require P4 LoadError: no such file to load -- P4 from (irb):1:in `require' from (irb):1 irb(main):002:0 Yet here it is installed: gem which P4

[Rails] Dirty.rb - confused

2009-01-31 Thread Timbo
Hi Guys, I am working with Active Record 2.1.x and there is a file called dirty.rb. Now I might be missing something but within the function write_attribute_with_dirty there is a call to write_attribute_without_dirty. Where is the definition for this function? What happens after this call?

[Rails] File descriptor leak in Mongrel server?

2009-01-31 Thread psujohn
Excuse my ignorance for I'm a RoR newby. We have a number of RoR applications running on a server with a cPanel installation. One of the clients sites went belly up with the error message: Errno::EMFILE Too many open files - socket(2) Digging a bit I found that the mongrel server had a large

[Rails] Openings for Ruby Developer at CA

2009-01-31 Thread mittal.anik...@gmail.com
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

[Rails] Cannot get webrick to start on Mac OS 10.5.6

2009-01-31 Thread jslicari
Hi. I'm am new to Ruby on Rails and I'm trying to get my environment up and running. I know that Ruby and Rails are pre installed on Mac OS 10.5 but I was having some problems. I went and updated everything with gem update --system, gem update, etc. However: [Macintosh:rails/work/demo]

[Rails] Active Resource without Formatters

2009-01-31 Thread Joe Ocampo
I have installed the ExtensionlessFormat plugin but I am still not able to get the information I need from the resource. The resource has a RESTful API that looks like this: GET {host} /processdefinitions A list of process definitions are returned As you can see they are expecting me

[Rails] Problem with ssl_requirement

2009-01-31 Thread Peter
Hello, I am trying to enable SSL for my rails app. I have installed the ssl_requirements plugin and added include SslRequirement in the application controller. Then I restart the server and access the home page. Then I am getting this error: NameError in ProjectsController#index uninitialized

[Rails] Botprotection plugin?

2009-01-31 Thread mosquito.gas...@googlemail.com
Hello, do anyone know a rails plugin which protects against spambots? If a the same page would be opened several times in a short time a captcha request popup to verify that there is no bot surfing at the rails application? Regards Adam --~--~-~--~~~---~--~~

[Rails] active_scaffold config issue? Complains about rails 2.2.2 dependency.

2009-01-31 Thread drub
Howdy all, Trying to start WEBrick. The error is displayed This version of ActiveScaffold requires Rails 2.2 or higher. Please use an earlier version. (RuntimeError) gem list shows rails 2.2.2, so looks like the proper version is present. What am I missing? Is this a config issue? Or is

[Rails] Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread ericindc
Say I have to Models, Project and Creator, related to each other such that @project.creator is valid. Creator has two fields, first_name and last_name, for the creator's name. Assuming that I want a quick way to display the creator's name as last_name, first_name inside the view, which is the

[Rails] Re: Suggestions for a rails webhost...

2009-01-31 Thread Miguel Regedor
yap, slicehost +1 =) but it depends how much you want to spent, with slice host you have complete control of you server, but of course a VPS is more expensive than a simple host service. On Jan 29, 5:02 pm, Michael Kahle rails-mailing-l...@andreas-s.net wrote: I have multiple domains I want to

[Rails] has_many with different foreign key

2009-01-31 Thread s. shartles
Hello, I am new to rails and am trying to get my associations straight. I have a User model and a Property model. I'd like to track who has updated a property record, so I added an integer field to the properties table called updated_by. Then I made the following changes: In the User model:

[Rails] Re: Installing plugins... is git necessary?

2009-01-31 Thread Robsteranium
Fernando's instructions worked for me. Seems a bit tedious though - working cli install would surely better? I tried following Sazima's instructions. Couldn't find the plug-in even with the git sources. On Jan 22, 11:12 pm, Harry Seldon rails-mailing-l...@andreas-s.net wrote: I wrote recently

[Rails] Re: Suggestions for a rails webhost...

2009-01-31 Thread Joe Ocampo
+1 for slicehost On Fri, Jan 30, 2009 at 11:31 AM, Denis Haskin de...@haskinferguson.netwrote: We host on EC2. I think it beats anything else for dev+test environments (since you can create and tear down instances very easily and pretty quickly, thanks to the various projects out there that

[Rails] Rails an MDA?

2009-01-31 Thread Wer Sie
Hi, I'm currently thinking of writing my bachelorthesis about the use of model driven architecture within webdevelopment. I'm now trying to figure out about the benefits of using MDA to generate Rails Code. So, which Components of an Web-/Rails App would you like to be generated via MDA? In

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Rob Lacey
I would always go for A def commified_name #{self.firstname} #{self.last_name} end It keeps the formatting in one place, no need for an additional helper method or indeed a helper class. I'd only really use a helper method to encapsulate repeated code in views. Just suppose you wanted to

[Rails] Re: Hash names with white spaces

2009-01-31 Thread Stefano Bonomi
Ok Tom, like you suggested, both params['first name'] and params[:'first name'] worked for me. Case solved. Thanks again Stefano -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] rails 2.2.2 and mysql issue on ubuntu

2009-01-31 Thread Shuaib85
Hi there, It has been a while i did not use rails. I have upgraded to rails 2.2.2 and I tried to run my application, i got this error !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. I have mysql, and I used to run

[Rails] Re: rails 2.2.2 and mysql issue on ubuntu

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 4:38 AM, Shuaib85 shuaib.za...@gmail.com wrote: It has been a while i did not use rails. I have upgraded to rails 2.2.2 and I tried to run my application, i got this error !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem

[Rails] Re: How long do you take for each Development Cycle

2009-01-31 Thread Arthur Chan
Hi Phlip, Phlip wrote: Arthur Chan wrote: Hi guys, I don't know if this question is proper to post here. But I think it is related to every developer, so I post. I am using RoR for developments more than a year. We are using Bugzilla. We do unit, funcitonal and watir tests. Do you

[Rails] Re: How long do you take for each Development Cycle

2009-01-31 Thread Arthur Chan
Sazima wrote: That's the problem with bugs, you never know how long they will take to correct. On the other hand, 4 days to resolve 25 simple bugs does not seem so tight. Cheers, Sazima Yup, i agree. But the bosses and clients never think so. Or actually, they think so, but changed

[Rails] Re: Dirty.rb - confused

2009-01-31 Thread javier ramirez
I am working with Active Record 2.1.x and there is a file called dirty.rb. Now I might be missing something but within the function write_attribute_with_dirty there is a call to write_attribute_without_dirty. Where is the definition for this function? What happens after this call?

[Rails] Re: Is It Possible to use auto complete with text_field _tag.

2009-01-31 Thread NAYAK
Hi, You can use auto_complete plugin and use text_field_with_auto_complete tag rather than text_field_tag NAYAK On Sat, Jan 31, 2009 at 11:19 AM, Newb Newb rails-mailing-l...@andreas-s.net wrote: hi Is it possible to use auto complete with text_field _tag. Kindly let me know Cheers --

[Rails] Re: Fetching RSS feeds asynchronously in background

2009-01-31 Thread Xie Hanjian
Hi Lennart, You may have interests on this: http://github.com/janx/newsmailer/blob/a4329bab234d8cc0252d9d7a72e97036b8a278df/app/models/crawler.rb Best, Jan * Lennart Koopmann koopmann.lenn...@googlemail.com [2009-01-30 13:09:19 +0100]: Hello everyone, I want to fetch some (5-10) RSS

[Rails] Re: Maxima and Ruby Integration

2009-01-31 Thread Andrius Chamentauskas
Well since it probably supports command line arguments, you could always use 'system' method On Jan 31, 5:22 am, Richard Schneeman rails-mailing-l...@andreas- s.net wrote: I'm looking to write a javascript heavy clientside program with a something serverside backend that connects to the free

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread ericindc
Thanks for the reply. I'd only really use a helper method to encapsulate repeated code in views. But isn't that the case here? I repeatedly use the commified version of the name inside of my views. So why wouldn't C be the best solution? Wouldn't using A break that convention? I also use the

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread ericindc
Oops, I meant A (in the Model) is the best answer, not C. On Jan 31, 9:42 am, ericindc ericmilf...@gmail.com wrote: Thanks for the reply. I'd only really use a helper method to encapsulate repeated code in views. But isn't that the case here?  I repeatedly use the commified version of the

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Chris Habgood
windows, apache 2.2. I set the virtual hosts like the docs say but I can only get to one of them, the first one in the list of virtual hosts. On Sat, Jan 31, 2009 at 2:54 AM, Thomas R. Koll tom...@gmx.de wrote: Hi, This is not a rails problem but an issue for your webserver. I can only

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Conrad Taylor
On Sat, Jan 31, 2009 at 6:58 AM, Chris Habgood chabg...@gmail.com wrote: windows, apache 2.2. I set the virtual hosts like the docs say but I can only get to one of them, the first one in the list of virtual hosts. On Sat, Jan 31, 2009 at 2:54 AM, Thomas R. Koll tom...@gmx.de wrote: Hi,

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Rob Lacey
Hi there, Ok that statement was probably a bit ambiguous. I'd use a view helper to encapsulate something that is purely view based. I'd say that commified_name isn't confined to the view, its legitimately an attribute of the model - model attributes aren't confined to database attributes. I

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
Do you need to modify the hosts file if I go to my server address? Yes i have a different ServerName for each one. On Jan 31, 9:11 am, Conrad Taylor conra...@gmail.com wrote: On Sat, Jan 31, 2009 at 6:58 AM, Chris Habgood chabg...@gmail.com wrote: windows, apache 2.2.  I set the virtual hosts

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 7:20 AM, Me chabg...@gmail.com wrote: Do you need to modify the hosts file if I go to my server address? Yes i have a different ServerName for each one. So are you accessing your server by IP address or host name? If it's the former you have to use a different IP for

[Rails] Re: How long do you take for each Development Cycle

2009-01-31 Thread Phlip
Arthur Chan wrote: On the other hand, 4 days to resolve 25 simple bugs does not seem so tight. Cheers, Sazima Yup, i agree. But the bosses and clients never think so. Or actually, they think so, but changed their mind when other things go wrong together as the whole process are

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Conrad Taylor
On Sat, Jan 31, 2009 at 7:20 AM, Me chabg...@gmail.com wrote: Do you need to modify the hosts file if I go to my server address? Yes i have a different ServerName for each one. On Jan 31, 9:11 am, Conrad Taylor conra...@gmail.com wrote: On Sat, Jan 31, 2009 at 6:58 AM, Chris Habgood

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Chris Habgood
My server is local. IP address on my netowrk at home. I go to IP/?? for my rails apps On Sat, Jan 31, 2009 at 9:30 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Jan 31, 2009 at 7:20 AM, Me chabg...@gmail.com wrote: Do you need to modify the hosts file if I go to my

[Rails] Re: How long do you take for each Development Cycle

2009-01-31 Thread brough...@gmail.com
you missed the bug up your ass. --~--~-~--~~~---~--~~ 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

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 7:33 AM, Chris Habgood chabg...@gmail.com wrote: My server is local. IP address on my netowrk at home. I go to IP/?? for my rails apps If you want to use Named Virtual Hosts, then those names need to be resolvable, though DNS, NIS, your local hosts file --

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
OK, well like in the previous replies, the first one works no problem it is the ones after in the file that do not work. On Jan 31, 9:49 am, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Jan 31, 2009 at 7:33 AM, Chris Habgood chabg...@gmail.com wrote: My server is local.  IP

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 7:50 AM, Me chabg...@gmail.com wrote: OK, well like in the previous replies, the first one works no problem it is the ones after in the file that do not work. The first one /what/? Hostname? Is that the actual hostname of your computer? A minute ago you said you were

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Phlip
Generally I would go with whatever solution feels more natural, and easier to manage for you. Don't get bogged down in convention if it doesn't work for you or feels wrong. I prefer to say that like: Put the code where it's easiest to test. Models are easier to test than controllers, so

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
The first virtual host. My sever locally is ex. 192.168.1.1 I go to 192.168.1.1/myapp1 that app in my vitual host works If I go to 192.168.1.1/myapp2 it says page cannot be displayed. It is the rails error page coming from myapp1. On Jan 31, 9:54 am, Hassan Schroeder

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 8:01 AM, Me chabg...@gmail.com wrote: The first virtual host. My sever locally is ex. 192.168.1.1 I go to 192.168.1.1/myapp1 that app in my vitual host works If I go to 192.168.1.1/myapp2 The above has exactly nothing to do with virtual hosts, so I'm not sure

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
OK I was trying to avoid pasting the virtual hsots file but here it goes: NameVirtualHost *:80 VirtualHost *:80 ServerName employeedb DocumentRoot F:/BACKUP/Backup/Web_apps_svn_working/employeedb/public RewriteEngine On Directory F:/BACKUP/Backup/Web_apps_svn_working/employeedb/public

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 8:11 AM, Me chabg...@gmail.com wrote: ServerName employeedb ServerName turindata Might work -- if you were accessing your server /using those names/ e.g. http://employeedb/ and http://turindata/ So either do that, or dump all the virtual host stuff and fix your

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
Ok, well this is where it gets odd, like I said before I can go to: I have my local server set up for http requests from my router. I can go to: http://192.168.1.1/turindata no problem the other app bombs On Jan 31, 10:19 am, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Jan 31,

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Rob Lacey
Agreed its easier to test models, or at least I find it easier. I'd say that its a fortunate side effect though, rather than a reason to test in a certain way. Although I guess if it really is too hard to test any part of your app then you're probably trying to solve the problem in the wrong

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 8:22 AM, Me chabg...@gmail.com wrote: Ok, well this is where it gets odd, like I said before I can go to: It's not odd at all. You're seeing the first app that matches as the default. That is NOT an indication that it's working, even partially. If you don't use the

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
huh, well I am doing it according to the apache docs. the *:80 routes all traffic from port 80 and the ServerName differentiates between the different virtual hosts. I go to http://192.168.1.1/turindata I should be able to go to http://192.168.1.1/employeedb If this is not correct can you

[Rails] Re: Can I force a form to submit empty fields?

2009-01-31 Thread Freddy Andersen
It was funny because I was thinking checkbox is different when I wrote my reply but left it out anyways... You have to specify what the default is and that should get you 1 or 0 or yes or no... check_box(product, published, {}, '1', '0') or check_box(puppy, gooddog, {}, yes, no) Btw the

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 8:46 AM, Me chabg...@gmail.com wrote: huh, well I am doing it according to the apache docs. I go to http://192.168.1.1/turindata I should be able to go to http://192.168.1.1/employeedb One more time -- the above has nothing to do with virtual hosts. Nothing. At. All.

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Chris Habgood
IP/app IP/app1 Not sure how to do it using mongrel on apache. All I have seen it doing it with virtual hosts. proxy to mongrel and back. On Sat, Jan 31, 2009 at 10:56 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Jan 31, 2009 at 8:46 AM, Me chabg...@gmail.com wrote:

[Rails] Re: Tag clouds

2009-01-31 Thread Bob Martens
If you need any help with this, let me know. I am currently using acts_as_taggable_on here: http://jibber.bobmartens.net so I have a little bit of experience. On Jan 31, 5:29 am, Saravanan Krishnan rails-mailing-l...@andreas- s.net wrote: Hi Vivek, As Andrew's suggesstion try the

[Rails] Working with after_create and Mailer Class

2009-01-31 Thread ericindc
I am trying to setup sending confirmation emails after creating a new instance of Project. In my Project Model, I have an after_create callback that calls the method send_confirmation. This is working fine -- the method is called, but I haven't figured out how to pass along the current instance

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread ericindc
Thanks for the replies, fellas. I've moved the code into my Model. Thanks again. On Jan 31, 11:33 am, Rob Lacey r...@mail.pigdestroyer.co.uk wrote: Agreed its easier to test models, or at least I find it easier. I'd say that its a fortunate side effect though, rather than a reason to test in

[Rails] Re: Working with after_create and Mailer Class

2009-01-31 Thread ericindc
Nevermind, I figured it out. Definitely a duh moment. From within the class, using self points to the current instance. Thanks, Eric On Jan 31, 12:17 pm, ericindc ericmilf...@gmail.com wrote: I am trying to setup sending confirmation emails after creating a new instance of Project.  In my

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Randy Kramer
On Friday 30 January 2009 09:31 pm, ericindc wrote: commified_name Off the point, but before we allow a word like commified to escape into the wild (see usage in next post by Rob Lacey), we spell it commafied instead--there is a slightly greater chance of guessing its intended meaning.

[Rails] Re: Customizing Model Data -- Inside Model or View or Helper?

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 10:06 AM, Randy Kramer rhkra...@gmail.com wrote: Off the point, but before we allow a word like commified to escape into the wild (see usage in next post by Rob Lacey), we spell it commafied instead--there is a slightly greater chance of guessing its intended meaning.

[Rails] Drop down boxes issue in ROR.

2009-01-31 Thread Anil Rac
Hi all, Can any one help me regarding, i want to select a country from one dropdown box and that corresponding states should display on another dropdown box. help me ASAP. Thanks, Anil. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] constant redefinition warning

2009-01-31 Thread Erwin
I get a redefinition warning : log warning = /Users/myself/Developpement/MyApp/vendor/plugins/globalize2/lib/myapp/ validations.rb:18: warning: already initialized constant RoleTranslation I am using the following code, apps is running well w warning module Validations def

[Rails] Re: has_many with different foreign key

2009-01-31 Thread Luke Pearce
s. shartles wrote: In the User model: has_many :properties In the Property model: belongs_to :user, :class_name = User, :foreign_key = 'updated_by' Here's what I see inside of the rails console: prop = Property.first = #Property id: 1, name: Main Street Center, ..., updated_by:

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Me
Start page works but all of my links do not work. On Jan 31, 11:10 am, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Jan 31, 2009 at 9:01 AM, Chris Habgood chabg...@gmail.com wrote: IP/app IP/app1 OK, dump all the virtual host stuff you're not using and under the default

[Rails] Guide to RESTful Rails?

2009-01-31 Thread zero0x
Hi, I've bought Peepcode's RESTful Rails screencast. It's pretty interesting - and there are a couple of things I didn't know at all. Please where do I find some complex tutorial to RESTful Rails? In API? Or where? Thank you --~--~-~--~~~---~--~~ You received

[Rails] Error logging in a database / case system

2009-01-31 Thread Andrew Thorp
Just wondering what the best way to set up custom error logging in rails is. I was thinking we would store errors in our database, with a generated case #, so that our users could call our support and we could reference the error they had. I was wondering if this makes sense, or if there is a

[Rails] auto_link issue with email address inside a

2009-01-31 Thread rien
I think there is a bug in auto_link_email_addresses, if an e-mail address is already linked. This works fine: % p = a href=\mailto:n...@test.com\;n...@test.com/a % %= auto_link(p) % This fails: % p = a href=\mailto:n...@test.com\;Some Other Text/a % %= auto_link(p) % And results in: a

[Rails] Ruby on Rails and Mysql

2009-01-31 Thread beardy
I'm fairly new to programming and the mac and I really want to have a go at learning Ruby On Rails, I have followed the set up tutorial on Hivelogic and I have a problems that I just can't fathom out and I can't seem to put the right collection of words into Google to get a definitive answer. The

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 11:51 AM, Me chabg...@gmail.com wrote: Start page works but all of my links do not work. Right, you'll need to set a prefix on all your routes -- I've done that once, but don't recall the incantation at the moment. Google should help. Or, much easier, just use virtual

[Rails] Re: Ruby on Rails and Mysql

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 8:56 AM, beardy beardsm...@googlemail.com wrote: 1 - I want to use mysql rather than Sqlite. Whilst I have followed the instruction on Hivelogic in Installing Ruby, Rubygems, Rails, and Mongrel on Mac OS X 10.5 (Leopard) every time I create a new file structure (e.g.

[Rails] fckeditor and rails 2.2.2

2009-01-31 Thread Shuaib85
Hi there after I upgraded to rails 2.2.2, i got the error - undefined fckeditor_textarea method while it works fine on rails 2.1.0 any idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 2:02 PM, Chris Habgood chabg...@gmail.com wrote: Ya, virtual hosts is what I am trying to do. here is the one that does not work: Any ideas? It doesn't work because you haven't, as far as I can tell, tried it. http://turindata/ is NOT THE SAME AS

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Chris Habgood
Well the virtual host above works: VirtualHost *:80 ServerName employees DocumentRoot F:/BACKUP/Backup/Web_apps_svn_working/employeedb/public ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ /VirtualHost I go to http://IP/employees and I get the index page which is

[Rails] How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
I'm fairly new to rails but I've read a book, many tutorials and watched video lectures so I'm starting to get a hang of how it works. I've now decided to jump in and create a rails app from scratch. I'm a little confused when it comes to going from concept to implementation using MVC. I

[Rails] [SOLVED]: constant redefinition warning

2009-01-31 Thread Erwin
I changed the creation + test to a simple get constant as it's already declared (being an ActiveRecord class created by Globalize plugin) a simple : globalize_class = Object.const_get #{self.class.name}Translation gives me the class... On 31 jan, 19:44, Erwin yves_duf...@mac.com wrote: I

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Phlip
Nebs Petrovic wrote: I've now decided to jump in and create a rails app from scratch. I'm a little confused when it comes to going from concept to implementation using MVC. I understand when to use models, pretty much whenever I have an object that I want to store in a database or

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Hassan Schroeder
On Sat, Jan 31, 2009 at 2:21 PM, Chris Habgood chabg...@gmail.com wrote: Well the virtual host above works: No. It. Doesn't. It ONLY APPEARS TO. Do you understand the concept of default? I go to http://IP/employees As long as you insist on trying to configure virtual hosts and NOT USING THE

[Rails] Re: rails with apache virtual hosts, mongrel

2009-01-31 Thread Chris Habgood
Do you mean this statement? NameVirtualHost *:80 I have that there. The apache docs say that statement routes all traffic on port 80 to the virtual hosts. If thee is something I am missing please let me know. I have this: NameVirtualHost *:80 ProxyRequests Off VirtualHost *:80 ServerName

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
Always remember that once you carve your design into stone, you can never change it. So make sure you get the design right before you start carving! (This is a winkie: ;^) That's why I'm posting this thread. -- Posted via http://www.ruby-forum.com/.

[Rails] restful search generator released

2009-01-31 Thread jzimmek
i want to announce the availability of restful_search generator. http://github.com/jzimmek/restful_search_generator take an activerecord model and let restful_search generate a search functionality for it (including controller, model, view and migration). please share your thought about it and

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Phlip
Nebs Petrovic wrote: Always remember that once you carve your design into stone, you can never change it. So make sure you get the design right before you start carving! (This is a winkie: ;^) That's why I'm posting this thread. Then you didn't get my winkie. Software is soft. Write

[Rails] Re: Ruby 1.9.1 Windows rake tasks problem

2009-01-31 Thread Ryan Bigg
Holy thread resurrection batman! You need to be using edge rails. --~--~-~--~~~---~--~~ 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: How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
Phlip wrote: Because a clean design typically falls into three layers, you don't need to guess, before coding, what the design should be. Write what you need, based on the behaviors you add to each page. Refactor towards DRY, and you will have the right things in the right layers,

[Rails] Where does index.html (home) fit into RoR?

2009-01-31 Thread Nebs Petrovic
The page that loads when no controller name is given in the URL is the public/index.html page (eg: http://localhost:3000/) Now this is a pure HTML page so I cannot use any link_to tags or yield tags, etc. My navigation bar is in my application layout (app/views/layouts/application.html.erb).

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Phlip
Nebs Petrovic wrote: Ok I understand what you're saying. I'm not just trying to design everything before I get my feet wet, I've already started and I know how to implement features when I can clearly see them fit into an MVC model. (BTW Ok is spelled Okay - it's a real word. OK is an

[Rails] form.radio_button values

2009-01-31 Thread Richard Schneeman
I'm using the radio_button form tag in my project, and I just recently switched to using i18n. I would like all of my database entries to be in english so I can parse evertyhing quickly, yet the code below doesn't quite work: %= f.radio_button(part_of_speech, [#{t 'noun'}, Noun]) % Produces

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Patrick Doyle
I think it is possible that you might be missing the OP's point. (Or, equally possible, I read a completely different question in the original post.) I think that Nebs would like to create a website with both static and dynamic pages that has a consistent look and feel. It sounds like (s)he

[Rails] Re: What and where is the method register! in restful authentication?

2009-01-31 Thread thomasalbert
Thanks Ramon, Never heard of finite state machines or acts_as_state_machine before, I have been chasing it on the web - more to learn. On Jan 31, 10:05 pm, Ramon Tayag ramon.ta...@gmail.com wrote: User acts as a state machine.  Transitions automatically get methods that are named after them

[Rails] Re: form_remote_for can do :put

2009-01-31 Thread Mathew Sanders
Ed Hickey wrote: On 1/23/07, Adam Madd rails-mailing-l...@andreas-s.net wrote: Tim I can't get that to work for me. I 've been using the :html hash for passing the PUT method as a hidden field. I've found this method in the Beast forum and it seems to work. Though, it does seem like you

[Rails] Re: Error logging in a database / case system

2009-01-31 Thread Sheldon Finlay
If you are referring to errors generated from your web site, you might want to look at the exception logger plugin: http://github.com/defunkt/exception_logger/tree/master It logs all exceptions to a handy web based interface complete with RSS feeds. It might be a good starting point. Sheldon

[Rails] Re: Cannot get webrick to start on Mac OS 10.5.6

2009-01-31 Thread Sheldon Finlay
Have you tried: sudo gems update --system Also, to install RubyGems from the source you need to add sudo: sudo ruby setup.rb On Jan 29, 7:03 pm, jslicari jlic...@zegtechnology.com wrote: Hi. I'm am new to Ruby on Rails and I'm trying to get my environment up and running.  I know that Ruby

[Rails] Re: Maxima and Ruby Integration

2009-01-31 Thread Richard Schneeman
I tried the following but i'm getting errors...am I missing something here? f = IO.popen(maxima) = #IO:0x208d5e8 f.puts 1+1; IOError: not opened for writing from (irb):7:in `write' from (irb):7:in `puts' from (irb):7 f.close_write IOError: closing non-duplex IO for writing from