Hello! I’m everywhere searching the answer for my question. How to get
parameters to controller from view using <input tag. But I want to do
this without db. I have the code:
class TranslateController < ApplicationController
def start
@time = Time.now
end
def result
@rez = params[:name]
end
end
Translate numbers from 10 to 16 system
Type your number and press link
Time is <%= @time %>
<%= link_to "Result", :action => "result" %>
Translate numbers from 10 to 16 system
It's result of your translation
<%= @rez %>
Back to <%= link_to "1 st page", :action => "start"%>
I’m new in Ruby. ( please, help with all it
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 28, 2:49 pm, veronika [email protected] wrote:
Hello! I’m everywhere searching the answer for my question. How to get
parameters to controller from view using <input tag. But I want to do
this without db. I have the code:
Use the form helpers (text_field_tag etc. The rails guide on forms has
examples: http://guides.rubyonrails.org/form_helpers.html )
Fred
</form>
<h2> <%= @rez %></h2>
<p> Back to <%= link_to "1 st page", :action => "start"%> </p>
</body>
I’m new in Ruby. ( please, help with all it
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks!!!
I found interesting site:
http://www.codeweblog.com/ruby-on-rails-and-to-use-action-web-service-to-create-web-services/
I try to do my work the same path, but get error:
“wrong number of arguments (1 for 0)”.
I would like to know: can I do the same without Web-client (example)?
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.