1 Reply Latest reply on Jul 21, 2014 12:29 AM by BHAKTA RANJAN SATAPATHY

    Image capture :ERB syntax error

    Salvatore De crescenzo

      Hi folks

       

      I have recently downloaded Rhomobile suit, I'm still quite new to the all environment and I have been reading quite few tutorials online, was able to complete the Rhomobile suite demo example with success.

       

      Now I am trying to complete the Image capture example by using the Android simulator and I have believe that SDK, NDk and Java paths have been correctly configured still I have not been able to launch the Android Simulator at all.

       

      When trying to run configuration I receive the following error :

       

      [

      (eval):42: syntax error, unexpected $end, expecting keyword_end

      ; _erbout.force_encoding('utf-8')

       

      You have a syntax error in your ERB: B:/Rhomobile workplace/Camera/bin/tmp/assets/apps/app/Image/index.erb

       

       

      See log above for the line number following the string "(eval):"]

       

      And this is the index.erb

       

      <div data-role="page">

       

       

        <div data-role="header" data-position="inline">

          <h1>Images</h1>

          <a href="<%= Rho::Application.startURI %>" class="ui-btn-left" data-icon="home" data-direction="reverse" <%= "data-ajax='false'" if is_bb6 %>>

            Home

          </a>

          <a href="<%= url_for :action => :new %>" class="ui-btn-right" data-icon="plus">

            New

          </a>

        </div>

       

       

        <div data-role="content">

          <ul data-role="listview">

         

          <li>

            <a href ="<%= url_for(:action => :edit) %>"> Choose Picture</a>

            </li>

         

          <% if System::get_property('has_camera')  %>

          <li>

            <a href ="<%= url_for(:action => :new) %>"> Take Picture</a>

           </li>

       

       

            <% @images.each do |image| %>

           

                <li>

                  <img src="<%= image.object %>" width "300px" ></img>

                 

               </li>

              

               <li>

                <a href ="<%= url_for(:action => :delete, :id => image.object) %>"> Delete </a>

                </li>

           

            <% end %>

          </ul>

        </div>

       

       

      </div>

       

      I can't find the error, can somebody pls help?