Ruby/ in RhoMobile

  • Ich programmiere eine App (in RhoMobile) und nutze dabei RUby & Html... mein Code funktioniert einfach nicht


    Für jede Anregung wäre ich dankbar :-)



    div class="toolbar">
    <h1 id="pageTitle">
    My Calendar Events
    </h1>
    </div>
    <ul id="calendar" title="My Calendar Events...">
    <%=link_to "New...", { :action => :new }, "class=\"button right_button\"" %>
    <% @events.each do |e| %>
    <li><%= link_to e[Rho::RhoEvent::TITLE], { :action => :edit, :id => e[Rho::RhoEvent::ID] } %></li>
    <% end %>
    </ul>


    System::get_property('has_calendar')


    # Termine als Hash definieren
    temp_event_hash = {
    :title => "Er&ouml;ffnungsplenum",
    :location => "Lichthof",
    :notes => " "
    :start_date => Time.new(2014, 11, 6, 13, 30, 00, "+02:00"),
    :end_date => Time.new(2014, 11, 6, 15, 30, 00, "+02:00"),
    :recurrence => { :recurrence => false }, # (Blackberry, Windows, iOS, Android)
    :canceled => false, # (iPhone and Android only)
    :organizer => "FSR Hannover", # (iPhone and Android only)
    :attendees => "BuFaK Hannover", # (iPhone and Android only)
    :last_modified => Time.now # (iPhone and Android only)
    }
    events = [ ]
    events << Rho: RhoEvent.create! (event_hash)



    temp_event_hash = {
    :title => "Ersti-/Profiworkshop",
    :location => "Lichthof/ Raum XYZ",
    :notes => ""
    :start_date => Time.new(2014, 11, 6, 15, 45, 00, "+01:15"),
    :end_date => Time.new(2014, 11, 6, 17, 00, 00, "+01:15"),
    :recurrence => { :recurrence => false },
    :canceled => false,
    :organizer => "FSR Hannover",
    :attendees => "BuFaK Hannover",
    :last_modified => Time.now
    }


    # Termine aktualisieren
    Rho::RhoEvent.update_attributes(event_hash)


    # Autorisieren
    Rho::RhoEvent.get_authorization_status


    </div>