[Rails] SEEKING DEVELOPERS TO HELP ON ANTI-FRACKING PROJECT

2012-09-29 Thread Rick Casey
Hello ROR community at large, I am seeking some help for a fairly simply Ruby On Rails/Facebook project which could help greatly in an intense local anti-fracking campaign in Colorado. I am a ROR beginner, but do not have the expertise to knock out this project quickly; but I have been a database

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Norbert Melzer
2012/9/29 Mandeep Kaur : > > Then how can I access site without port. Please give some idea how can > I do this? When your Apache is configured to listen on port 80 AND apache is configured to serve a certain VirtualHost via Passenger, THEN no port in the URL is needed. The documentation of pass

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Hassan Schroeder
On Sat, Sep 29, 2012 at 2:44 PM, Mandeep Kaur wrote: > Then how can I access site without port. Please give some idea how can > I do this? I'd imagine it's the default for a Passenger installation, but it's been a long time since I configured one. What is not working for you at this point? What

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Mandeep Kaur
On Sat, Sep 29, 2012 at 10:40 PM, Hassan Schroeder wrote: > On Sat, Sep 29, 2012 at 10:03 AM, Mandeep Kaur wrote: > > If you're using Passenger, it should be listening on port 80. > > Why would you want people to have to add a port # to the URL of > your site? > Then how can I access site witho

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Hassan Schroeder
On Sat, Sep 29, 2012 at 10:03 AM, Mandeep Kaur wrote: > Although I am a student and learning RoR so I am not able to afford that. I think you missed the point of that story :-) > But can i link my site to ipaddress:3000 on which rails app is running? If you're using Passenger, it should be lis

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Mandeep Kaur
On Sat, Sep 29, 2012 at 10:21 PM, Norbert Melzer wrote: > Don't repeat mistakes that others did. Make your own, but make them different! > Thanks for sharing your experience. I will take care about that. Although I am a student and learning RoR so I am not able to afford that. But can i link my

Re: [Rails] Test cases in rails project

2012-09-29 Thread Norbert Melzer
2012/9/29 jude : > Is it necessary to write the test cases for the entire rails project, > or the test cases needed for specific functionalties Necessary isn't even one single test. Tests are for you, not for the project. The are "needed" to make it maintainable, not to make it work. But as a r

Re: [Rails] Test cases in rails project

2012-09-29 Thread Norbert Melzer
2012/9/29 jude : > Is it necessary to write the test cases for the entire rails project, > or the test cases needed for specific functionalties Necessary isn't even one single test. Tests are for you, not for the project. The are "needed" to make it maintainable, not to make it work. But as a r

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Norbert Melzer
2012/9/29 Mandeep Kaur : > I don't think Its the right choice to pay someone for doing that. I > will try it and hopefully run that too. > Anyways thanks for your help. Believe me it is, I had to learn that the hard way a couple of years ago! Setting up a webserver that it works is one thing, se

[Rails] Test cases in rails project

2012-09-29 Thread jude
Is it necessary to write the test cases for the entire rails project, or the test cases needed for specific functionalties -- 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.

Re: [Rails] create database and run migration at run time

2012-09-29 Thread Colin Law
On 28 September 2012 09:39, gagan sharma wrote: > Hi, > > I have to create databases at run time depending on the name of the new > user's company and to run all the migrations for that new database. > > for example: If a new user get registered and enter ABC as his company > name, then we will ch

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Mandeep Kaur
On Sat, Sep 29, 2012 at 9:34 PM, Norbert Melzer wrote: > Is that server an Ubuntu too? Yes > If not many things in configuring apache can differ, at least the files are > located somewhere else. Also the needed dependencies for passenger will have > other package names. > > But since it seems tha

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Norbert Melzer
Is that server an Ubuntu too? If not many things in configuring apache can differ, at least the files are located somewhere else. Also the needed dependencies for passenger will have other package names. But since it seems that you not really know what you are doing, I really would suggest you tha

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Mandeep Kaur
On Sat, Sep 29, 2012 at 7:28 PM, Hassan Schroeder wrote: > > Please go read something about the Domain Name System (DNS). > Then register a domain name for your project so name servers can > find it. Ok, Thanks. > In the meantime, for your own testing purposes, put the name you > want to use and

Re: [Rails] adding different title for a single form in rails

2012-09-29 Thread Hassan Schroeder
On Fri, Sep 28, 2012 at 11:36 PM, ruby rails wrote: > I have a Task management applciation where users can add task and edit > it. I am using single form for it. When I render this form for edit and > new, I need to assign the different form title for each. Say "Edit task" > and "Assign new task".

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Hassan Schroeder
On Sat, Sep 29, 2012 at 6:40 AM, Mandeep Kaur wrote: > I want to build a website using RoR and for that I have to start it > for all time and to do that I want to use passenger. > Now what can I do for that? Your "problem" has nothing to do with RoR or Passenger; it's that you apparently don't k

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Mandeep Kaur
On Sat, Sep 29, 2012 at 5:26 PM, Norbert Melzer wrote: > When you say domain. Com in the apache configuration than only apache is > aware of this domain. Firefox just uses the standard way and try to look up > that name via DNS. Since it can't find anything it says that there is > nothing. You hav

Re: [Rails] adding different title for a single form in rails

2012-09-29 Thread Alexandre Calvão
simple_form does that https://github.com/plataformatec/simple_form === *Alexandre Mondaini Calvão* "*Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*." [Ghandi] 2012/9/29 ruby rails > I have a Task management applciation whe

Re: [Rails] How do you create a link to a resource that expires

2012-09-29 Thread Alexandre Calvão
I would use cancan. https://github.com/ryanb/cancan/wiki/Authorizing-Controller-Actions if valid(params[:token]) authorize! :show, @stuff end === *Alexandre Mondaini Calvão* "*Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*.

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Norbert Melzer
When you say domain. Com in the apache configuration than only apache is aware of this domain. Firefox just uses the standard way and try to look up that name via DNS. Since it can't find anything it says that there is nothing. You have to use local host instead or add that domain to your /etc/host

Re: [Rails] Rails with Phusion Passenger and Apache

2012-09-29 Thread Norbert Melzer
Please give us a little bit more information, doesn't work is somewhat wage... What error messages do you get, the show us the bits of your configuration. Which Version of Ubuntu are you running? Post anything more I have forgotten Am 29.09.2012 06:08 schrieb "Mandeep Kaur" : > Hello All, > > I