public
Clone URL: git://github.com/egogo/verim.dp.ua.git
soon fix
egogo (author)
Sun Oct 12 13:03:48 -0700 2008
commit  8dcf875a4b4fefce9e7c657c15a98e4c36d6a20e
tree    420f1b770e6025b9e8bfa918be8069260c38df5e
parent  f0e63ed309e249a308b005b1d980a1b3ca3248c3
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ require 'pp'
0
 class HomeController < ApplicationController
0
   def index
0
     @playbill = PlayAppearance.find(:all,:conditions => [ "`date` >= ? AND `date` <= ?", Time.now.to_s(:db), 1.month.since(Time.now).to_s(:db) ] , :order => '`date` ASC', :include => [:play])
0
- @soon = @playbill[0]
0
+ @soon = @playbill.first
0
     @playbill = @playbill.slice(1..100)
0
   end
0
 end
...
7
8
9
10
 
11
12
13
...
7
8
9
 
10
11
12
13
0
@@ -7,7 +7,7 @@
0
     <%= link_to(image_tag(url_for_file_column(@soon.play, :photo), :class => 'poster', :alt => "Плакат спектакля #{@soon.play.name}"),url_for(:controller => 'plays', :action => 'show', :id => @soon.id )) %>
0
       <div class="image-text">
0
         <abbr class="date dtstart" title="20071124T1700+0200"><%= @soon.date.day.to_s %> <%= Date::RU_INFLECTED_MONTHNAMES[@soon.date.month] %>, <%= @soon.date.strftime("%H:%M") -%></abbr>
0
- <h2><%= link_to(@soon.play.name,url_for(:controller => 'plays', :action => 'show', :id => @soon.id )) %></h2>
0
+ <h2><%= link_to(@soon.play.name,url_for(:controller => 'plays', :action => 'show', :id => @soon.play.id )) %></h2>
0
         <p class="author">(по пьесе <%= @soon.play.autor -%>)</p>
0
         <p class="text">Постановка <%= @soon.play.director -%>.<br />Продолжительность: <%= @soon.play.duration -%>. </p>
0
         <p class="text">Премьера спектакля состоялась <%= @soon.play.first_played.day.to_s %> <%= Date::RU_INFLECTED_MONTHNAMES[@soon.play.first_played.month] %> <%= @soon.play.first_played.year.to_s %> года.</p>

Comments

    No one has commented yet.