Jump To Content
LearnHub
Frontpage
Schools
Communities
Sign In
or
Sign Up
Search LearnHub
Keywords
Person
hcatlin
Primary Navigation
Profile
Information
Activity
Updates
Authority
Contacts
Communities
Joined Communities
Led Communities
Courses
Summary
Teaching
Taking
Taught
Took
Lessons
Tests
Basic Rails Controllers
A test by
Hampton Catlin
.
Test Questions
Question
How do you reset the session?
Answers
Correct
Answer Text
session.reset!
request[:session] = nil
session = nil
session.reset
Question
What is the method name if we want to ignore a before_filter setup in a previous controller?
Answers
Correct
Answer Text
ignore_before_filter :name
before_filter { |i| i.ignore(:name) }
skip_before_filter :name
Question
How would you access the name "Hampton" in "?user[][name]=Hampton&relation=3"
Answers
Correct
Answer Text
params[:user][:name]
params["user"].first[:name]
params["user[][name]"]
params["user"].first[":name"]
params["name"]
Question
Can you modify the params object within an action?
Answers
Correct
Answer Text
true
false
Question
The parameter string "?user[][name]=Hampton&relation=3" will translate into what structure?
Answers
Correct
Answer Text
{"user"=>[{"name"=>"Hampton"}], "relation"=>"3"}
{"user"=>[{"name"=>"Hampton", "relation"=>"3"}]}
{"user_name" => "Hampton", "relation" => "3"}
Question
DHH is from what country?
Answers
Correct
Answer Text
Poland
Norway
Daneland
Denmark
Answer
Test Statistics
Rating
Likes
6
Negative
0
Your Actions
Rate
Up
Down