%= link_to 'name', :vals => { 'plain text', _'translated text', _'translated text with %variable' } %> ----------------------------------- link_to('name', array('vals' => array('plain text', $text_helper->translate('translated text'), $text_helper->translate('translated text with %variable', array('%variable' => @$variable))))); ?> =================================== <%= render :partial => "account", :locals => { :account => @buyer } %> ----------------------------------- render( array('partial' => "account", 'locals' => array('account' => $buyer))); ?> =================================== <%= link_to(document.title, :controller => "document", :action => "show", :id => document.id) %> ----------------------------------- link_to($document->title, array('controller' => "document", 'action' => "show", 'id' => $document->id)); ?> =================================== <%= link_to (translate("Visit Other Site"), "http://www.akelos.org/", :confirm => "Are you sure?" ) %> ----------------------------------- link_to($text_helper->translate("Visit Other Site"), "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?> =================================== translate('I\'m anxious', 'I\'m Testing'); ?> ----------------------------------- translate('I\'m anxious', 'I\'m Testing'); ?> =================================== <%= translate 'Write me home' %> ----------------------------------- translate('Write me home'); ?> =================================== <%= translate 'I\'m anxious', 'I\'m Testing' %> ----------------------------------- translate('I\'m anxious', 'I\'m Testing'); ?> =================================== <%= translate "Let's \"Jump\"", "D'Akelos Way" %> ----------------------------------- translate("Let's \"Jump\"", "D'Akelos Way"); ?> =================================== <%= translate "Use helpers like this: <%= translate 'This text' %>" %> ----------------------------------- translate("Use helpers like this: <%= translate 'This text' %>"); ?> =================================== <%= translate :page_title %> ----------------------------------- translate('page_title'); ?> =================================== <%= translate @weekday %> ----------------------------------- translate($weekday); ?> =================================== <%= translate @date-weekday %> ----------------------------------- translate($date['weekday']); ?> =================================== <%= link_to ("Visit Other Site", "http://www.akelos.org/", {:confirm => "Are you sure?"} ) %> ----------------------------------- link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?> =================================== <%=link_to "Delete Image", { :action => "delete", :id => @image.id }, :confirm => "Are you sure?", :method => :delete %> ----------------------------------- link_to("Delete Image", array('action' => "delete", 'id' => $image->id), array('confirm' => "Are you sure?", 'method' => 'delete')); ?> =================================== <%= link_to "Visit Other Site", "http://www.akelos.org/", :confirm => "Are you sure?" %> ----------------------------------- link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?> =================================== <%= link_to "Visit Other Site", "http://www.akelos.org/", :confirm => "Are you sure?", :options => ["Yes", 'No'] %> ----------------------------------- link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?", 'options' => array("Yes", 'No'))); ?> =================================== <%=mail_to "me@domain.com", "My email", :encode => "javascript"%> ----------------------------------- mail_to("me@domain.com", "My email", array('encode' => "javascript")); ?> =================================== <%= link_to ( translate("Visit Other Site"), "http://www.akelos.org/", {:confirm => "Are you sure?"} ) %> ----------------------------------- link_to($text_helper->translate("Visit Other Site"), "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?> =================================== <%=mail_to: 'bermi@example.com'%> ----------------------------------- mail_to('bermi@example.com'); ?> =================================== <%=email_link: 'bermi@example.com', 'Click to email'%> ----------------------------------- email_link('bermi@example.com', 'Click to email'); ?> =================================== <%=distance_of_time_in_words: 300, 100%> ----------------------------------- distance_of_time_in_words(300, 100); ?> =================================== <%= url_for :action => 'select_database' %> ----------------------------------- url_for( array('action' => 'select_database')); ?> =================================== = "Hola" ?> ----------------------------------- =================================== <%= url_for true, false, null %> ----------------------------------- url_for(true, false, null); ?> =================================== if (true): ?>