I wanted to add a project description to each of my projects.
So I started with the projects cruise_config.rb
# Project-specific configuration for CruiseControl.rb
Project.configure do |project|
project.description = "This is a project description"
end
I changed app/models/project.rb
- attr_accessor :source_control, :scheduler
+ attr_accessor :source_control, :scheduler, :description
def initialize(name, scm = nil)
@name = name
+ @description = ''
I added the following to app/views/projects/_project.rhtml
<td class="build_details">
+ <% if project.description %>
+ <p><%=project.description%></p>
+ <% end %>
<% latest_build = recent_builds.first %>
I can force a description to show up in the view if I change
@description in the initialze method of project.rb to a value.
But the configuration value from cruise_config.rb never changes it.
What did I miss?
_______________________________________________
Cruisecontrolrb-developers mailing list
Cruisecontrolrb-developers@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers