File: public\input.html
Using Radio Buttons
Working With Radio Buttons
This Ruby on Rails application lets you read data from radio buttons.
File: app\controllers\hello_controller.rb
class HelloController < ApplicationController
def there
@data = params[:radios1]
end
end
File: app\views\hello\there.rhtml
Reading data from radio buttons
Reading data from radio buttons
This Ruby on Rails application reads data from radio buttons.
You selected <%= @data %>.
Start the WEBrick server:ruby script/server
Navigate to http://localhost:3000/input.html
readRadioButton.zip( 90 k)