Changeset 80568
- Timestamp:
- 07/14/11 22:49:56 (4 years ago)
- Location:
- branches/gsoc11-statistics/stats-server/app
- Files:
-
- 1 added
- 3 edited
-
models/os_statistic.rb (modified) (2 diffs)
-
models/user.rb (added)
-
views/os_statistics/index.html.erb (modified) (2 diffs)
-
views/os_statistics/show.html.erb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-statistics/stats-server/app/models/os_statistic.rb
r80511 r80568 1 1 class OsStatistic < ActiveRecord::Base 2 attr_accessible :uuid 2 belongs_to :user 3 4 attr_accessible :user_id 3 5 attr_accessible :macports_version 4 6 attr_accessible :osx_version … … 9 11 attr_accessible :xcode_version 10 12 11 validates :u uid,:presence => true13 validates :user_id, :presence => true 12 14 validates :macports_version, :presence => true 13 15 validates :osx_version, :presence => true -
branches/gsoc11-statistics/stats-server/app/views/os_statistics/index.html.erb
r80511 r80568 121 121 <tr> 122 122 <th> ID </th> 123 <th> UUID</th>123 <th> user_id </th> 124 124 <th> MacPorts Version</th> 125 125 <th> OSX Version</th> … … 135 135 <tr> 136 136 <td> <%= row.id %> </td> 137 <td> <%= row.u uid %> </td>137 <td> <%= row.user_id %> </td> 138 138 <td> <%= row.macports_version %> </td> 139 139 <td> <%= row.osx_version %></td> -
branches/gsoc11-statistics/stats-server/app/views/os_statistics/show.html.erb
r80511 r80568 1 <p>UUID: <%= @os_stats.uuid %></p>2 3 1 <p> macports_version: <%= @os_stats.macports_version %> </p> 4 2 <p> osx_version: <%= @os_stats.osx_version %></p>
Note: See TracChangeset
for help on using the changeset viewer.

