title: Ruby on Rails: Retrieve css element and check value
body: <p>I think this is a pretty straight forward question so I'll get to it:</p>
  
  <p>subject.rb</p>
  
  <pre><code>def current_step
      @current_step || steps.first
     end
  
     def steps
        if @title = 'Baseline'
         %w[sfmfa phq whoqol_bref positive_negative mses_self pam spsir change_questionnaire prosthesis cognitive comorbidity pain mspss audit ]
        elsif @title = 'Treatment Completion'
           %w[smfa phq whoqol_bref positive_negative pam spsir ssscq prosthesis pain complications mspss audit ptcs accessing_resources satisfaction ]
        else
           redirect_to @subjects_path 
           flash[:notice] = "Did not find title"
        end
  
     end
  </code></pre>
  
  <p>I'm trying to check the value of the Title element on my tc.html.erb webpage (this should return 'Treatment Completion'). At the moment the check isn't working, and I end up with the steps defined under 'Baseline' every time. </p>
  
  <p>I have steps for a paginated form, and it all works for the Baseline page, so now I'm trying to pass a different set of elements as the steps definition for a different page.</p>
  
  <p>I think I'm using the wrong accessor (@title). This ruby I'm using to provide the Title is: </p>
  
  <pre><code>&lt;% provide(:title, 'Baseline') %&gt;
  </code></pre>
  
  <p>Any input would be appreciated. </p>