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">


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



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






        <div data-role="content">

          <ul data-role="listview">



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



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


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




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



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





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



            <% end %>







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