[Rails] Dumb MySql Database from Parent to child

2011-06-24 Thread News Aanad
Hi, I am creating such an application in which there is multipal servers. Now there is parent server which has multipal child server . My original data is in parent server's database. My problem is I want to dump all the data from parent database to child database. How would i do this? My database

Re: [Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread Norm Scherer
If you want to keep up with the latest versions of ruby and rails rvm will simplify life. If however you want to settle on a version and spend your time developing your application you can just skip rvm. YMMV Norm On 06/24/2011 09:30 AM, VitorHP wrote: U should really consider on taking RVM.

Re: [Rails] Re: Help with railroad

2011-06-24 Thread Rodrigo Ruiz
Ya, actually I do need a class diagram for controllers and models. How can I use that railroady? On Sun, Jun 12, 2011 at 11:32 AM, Quaternion wrote: > If needed, not only the model diagrams, use > http://github.com/preston/railroady. > > -- > You received this message because you are subscribed t

Re: [Rails] Help with railroad

2011-06-24 Thread Rodrigo Ruiz
I did manage to install it with 'install railroad gem', problem is that when I run any command like 'railroad -a -i -M | dot -Tpng > doc/models.png' it doesn't work, I get this: /Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:in `disable_stdou

[Rails] Re: Encoding

2011-06-24 Thread Erica
Thank you everyone for your responses. They are helped me figure out a solution. This seems to work for my problem: s = s.gsub("\xe2\x80\x9c", '"') s = s.gsub("\xe2\x80\x9d", '"') s = s.gsub("\xe2\x80\x98", "'") s = s.gsub("\xe2\x80\x99", "'") s = s.gsub("\xe2\x80\x93", "-")

Re: [Rails] instantiating object and passing a new array into the block

2011-06-24 Thread Walter Lee Davis
On Jun 24, 2011, at 2:42 PM, John Merlino wrote: Hey all, Out of curiousity, all in Rails grabs all the records and converts them into an array. Map then iterates through the returned array, returning a new array. So why even use map here? And then the array gets passed as local variable bt. A

Re: [Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread VitorHP
U should really consider on taking RVM. When a newer Ruby version come out, you'll be able to maintain your projects with their current version and also install the new version along with the current version you're using. Makes life a lot easier and it's not difficult to install. Em 24/6/201

[Rails] instantiating object and passing a new array into the block

2011-06-24 Thread John Merlino
Hey all, Out of curiousity, all in Rails grabs all the records and converts them into an array. Map then iterates through the returned array, returning a new array. So why even use map here? And then the array gets passed as local variable bt. And we instantiate object and assign the bt array as a

Re: [Rails] Social Networking

2011-06-24 Thread exelstu...@gmail.com
Try some of these: https://github.com/insoshi/insoshi#readme http://communityengine.org/ http://lovdbyless.com/ http://www.enginey.com/ Lovd by Less looks pretty good, haven¹t had a chance to try it yet tho. Best, Pardeep. On 6/23/11 11:16 PM, "Sayuj Othayoth" wrote: > Hi, > > I want to c

Re: [Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread Paul
You don't *need* RVM, but it makes life easier. It is an easy way to install Ruby 1.9.2p180 to start with. Then, when a new version of Ruby comes out, it will make it trivial to upgrade. On Fri, Jun 24, 2011 at 4:38 AM, Sebastian wrote: > Thank you for clarification!!! > > One last question: > >

[Rails] Generating models from a parent by entering a single integer

2011-06-24 Thread a1aks
Hi there, I was wanting this but could not be able to figure how to go about it.. I am creating an application that includes batch details that includes models called samples in it. Its a multi form and every thing is being created by following Mr. Ryan.B 's tutorials. Now that I want some Ajax t

[Rails] Generating models from a parent by entering a single integer

2011-06-24 Thread a1aks
Hi there, I was wanting this but could not be able to figure how to go about it.. I am creating an application that includes batch details that includes models called samples in it. Its a multi form and every thing is being created by following Mr. Ryan.B 's tutorials. Now that I want some Ajax t

Re: [Rails] Re: Invoke HTTP request

2011-06-24 Thread Michael Pavling
On 24 June 2011 16:09, paulo wrote: > On Jun 23, 2:29 pm, paulo wrote: >> I am just looking to invoke a GET request to a remoteHTTPresource >> (php script) from my rails3 app, with some URL parameters. I'm not >> bothered about the response, essentially I am looking to trigger a PHP >> method thr

[Rails] relationships with remote objects

2011-06-24 Thread paulo
Hi guys, I'm having an issue establishing a has_many and/or belongs_to relationship between two of my models. One of them is 'local' if you like (called site), i.e. standard model in local db, the other is a RESTful resource (called audit), defined using the self.site method. I have checked and th

[Rails] Re: Invoke HTTP request

2011-06-24 Thread paulo
Hi folks, Can I take it that this is harder than it sounds? Would have thought it should be dead simple but not sure. Thanks, Paul On Jun 23, 2:29 pm, paulo wrote: > Hi Folks, > > I suspect this will be a 1-liner from someone, as it seems like it > should be really easy but I've not worked it

Re: [Rails] Re: uniqueness_of on many columns

2011-06-24 Thread Chirag Singhal
Can you post your sample data here and if possible your model and controller code? I have used it on several apps, and works just fine for me. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit htt

Re: [Rails] Re: uniqueness_of on many columns

2011-06-24 Thread Tom Allison
Yeah, but in this case I'm just regurgitation someone else's data and I don't want to pick up duplicate records. On Sun, Jun 19, 2011 at 7:11 PM, Andrew Skegg wrote: > Tom Allison writes: > > > > > > > Greetings!I'm trying to set up a validation to ensure that a record is > unique across three

Re: [Rails] Ajax sends PUT for updates, Rails complains that it's POST :(

2011-06-24 Thread Gintautas Šimkus
What is your JS code for sending the request? 2011/6/24 Walter Lee Davis > > On Jun 23, 2011, at 5:00 PM, sc-kitten wrote: > > Hi, >> I am not sure what is happening... But suddenly my apps in Rails >> started behaving weirdly. Non of the Ajax PUT requests are received as >> PUT anymore and ins

Re: [Rails] Ajax sends PUT for updates, Rails complains that it's POST :(

2011-06-24 Thread Walter Lee Davis
On Jun 23, 2011, at 5:00 PM, sc-kitten wrote: Hi, I am not sure what is happening... But suddenly my apps in Rails started behaving weirdly. Non of the Ajax PUT requests are received as PUT anymore and instead Rails complains that I am sending POST... I also noticed that instead of the correct

[Rails] How to access routes in Rails 3.1 in assets js.erb

2011-06-24 Thread Max Zelinski
I'm porting my 3.0 Rails project to 3.1 rc4 and I got a js.erb which is located in views folder that places url of one of my controllers in result js. I want to move this js.erb under assets because there are no logic except this and keeping controller just for that is an overhead in Rails 3.1 f

Re: [Rails] Social Networking

2011-06-24 Thread Bernd Ritter
Hi Sayuj, try https://joindiaspora.com/ its pretty much what you want, it's open source and it's ROR! Cheers, Bernd Am 24.06.2011 08:16, schrieb Sayuj Othayoth: > Hi, > > I want to create a family website which includes social networking > features. > The site should have dynamic articles, news,

Re: [Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread Rafal Zdziech
I personally prefers linux backtrack for development and gnome env and him as e editor . Last version is based on Ubuntu. At the end of the day it doesn't make any difference which Linux you use as long as you know what are you doing. On 24 Jun 2011 07:31, "Sebastian" wrote: > excelstu...@gmail.c

Re: [Rails] Social Networking

2011-06-24 Thread Rafal Zdziech
Hi, You may want to tried something similar on the github. Someone may already done it. Anyway I think it would be good to start with Tdd techniques because it will save your time. On 24 Jun 2011 07:17, "Sayuj Othayoth" wrote: > Hi, > > I want to create a family website which includes social netw

[Rails] Escaped Links in Rails3

2011-06-24 Thread No Name
I am working on a site that just upgraded to Rails 3 which for some reason displays escaped links as /'s instead of forward slashes.any idea if this will hinder google or any other bots ability to crawl the website? Any way to fix this easily? Any and all help with this would be awesome. --

[Rails] Ajax sends PUT for updates, Rails complains that it's POST :(

2011-06-24 Thread sc-kitten
Hi, I am not sure what is happening... But suddenly my apps in Rails started behaving weirdly. Non of the Ajax PUT requests are received as PUT anymore and instead Rails complains that I am sending POST... I also noticed that instead of the correct module, for example PUT request is sent via Ajax t

[Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread Chirag Singhal
On a server - No, rvm is not required In my experience, Nginx is faster, but Apache is much easier to setup and get going. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.c

[Rails] Re: R: Which Ubuntu version is recommended for Rails 3?

2011-06-24 Thread Sebastian
Thank you for clarification!!! One last question: I think I don't need to play around with different Ruby or Rails version. I need Rails 3 with Ruby 1.9.2. So do I really need rvm? I want to use sqlite3 as database. Is there any recommendation for the web server: Apache or nginx? Thanks at all,