I have created a Ruby on Rails app, but how do I move it to the web? Been testing it in localhost and everything is ready to go, but how do I publish it to the web? Change the database.yml file to my MySQL settings but then what do I do?? PLEASE HELP
There are some methods to do here: rubyonrails.org/deploy Just do a google search on deploy ruby on rails and you'll find some tutorials.
If your using some hosting let them know to point you root app to public folder .... but which method they are using to run your application thats the first question you should ask... like apache passenger or mongrel clusters ?
try out ec2onrails if you want to deploy to Amazon's EC2 service. Great tools for clustering and backups and more. This is what we used for eroslife.com.
i just created an application to list the primary details of userbut it is showing an error lik this "uninitialized constant UsersController::User" this is my controlller class UsersController < ApplicationController puts"hiiiiiiiii" def index puts"hiiiiiiiii" @users = User.findall) puts @users respond_to do |format| format.html # index.html.erb format.xml { render :xml => @users } end end end this is my view file <h1>Users List</h1> <table> <tr> <th>Name</th> <th>Age</th> <th>Designation</th> <th>Hobby</th> </tr> <% @user.each do |user| %> <tr> <td><%=h user.name %></td> <td><%=h user.age %></td> <td><%=h user.designation %></td> <td><%=h user.hobby %></td> <!--<td><%= link_to 'Show', job %></td> <td><%= link_to 'Edit', edit_job_path(job) %></td> <td><%= link_to 'Destroy', job, :confirm => 'Are you sure?', :method => :delete %></td>--> </tr> <% end %> </table> and my model is this class User < ActiveRecord::Base end can anyone tell how to solve this