Johny ben wrote:
> Hi sir I followed your post.I got a running RoR on godaddy without a 
> database>My problem when I try to add a simple query on the database my 
> page only display a blank page.I really don’t what happening.
> 
> deluxe hosting linux
> development machine
> win xp
> rails 1.1.6
> ruby 1.8.6
> gem 0.9.4
> mysql 5
> 
> database.yml
> development:
> adapter: mysql
> database: secondtry_db
> host: secondtry_db.db.3769687.hostedresource.com
> port: 3306
> username: secondtry_db
> password: ********
> 
> production:
> adapter: mysql
> database: secondtry_db
> host: secondtry_db.db.3769687.hostedresource.com
> port: 3306
> username: secondtry_db
> password: *******
> contoller
> @users = User.find(:all)
> app/new.rhtml
Welcome to User Registration
<%= Time.now %>
<table>
  <tr>
    <th>Lastname</th>
    <th>Firstname</th>
    </tr>

<% for user in @users %>
  <tr>
    <td><%=h user.lastname %></td>
    <td><%=h user.firstname %></td>
    </tr>
<% end %>
</table>


> 
> When I remove the query on new.rhtml
> I view the simple message ” Welcome to User Registration and the Time”
> 
> Migrate database
> def self.up
> create_table :users do |t|
> t.column :lastname, :string
> t.column :firstname, :string
> end
> end
> Thank you in advance..
on Error Log
  /web/cgi-bin/php5: Symbol `client_errors' has different size in shared 
object, consider re-linking
/web/cgi-bin/php5: Symbol `client_errors' has different size in shared 
object, consider re-linking

-- 
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 unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to