Revision: 2789
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 15, 2007 20:17 by radio_g
Initial Code
class KnoskController < ApplicationController def ask # sets and formats the question # if one has been posted @qtext = params[:question][:qtext] if @qtext then @qtext.capitalize! @qtext.gsub!(" i ", " I ") if [email protected]("?") then @qtext << "?" end # adds the question to the database # if one was posted here end def search end def answer end def about end def options end end
Initial URL
www.knosk.com
Initial Description
@qtext does not become available in the view. however, this code has worked inside the view.
Initial Title
Knosk Main Controller, Early
Initial Tags
Initial Language
Rails