{"payload":{"allShortcutsEnabled":false,"fileTree":{"IronRubyMvcWeb/Controllers":{"items":[{"name":"Helpers","path":"IronRubyMvcWeb/Controllers/Helpers","contentType":"directory"},{"name":"HomeController.rb","path":"IronRubyMvcWeb/Controllers/HomeController.rb","contentType":"file"},{"name":"ProductsController.rb","path":"IronRubyMvcWeb/Controllers/ProductsController.rb","contentType":"file"},{"name":"controller.rb","path":"IronRubyMvcWeb/Controllers/controller.rb","contentType":"file"}],"totalCount":4},"IronRubyMvcWeb":{"items":[{"name":"App_Data","path":"IronRubyMvcWeb/App_Data","contentType":"directory"},{"name":"Content","path":"IronRubyMvcWeb/Content","contentType":"directory"},{"name":"Controllers","path":"IronRubyMvcWeb/Controllers","contentType":"directory"},{"name":"Filters","path":"IronRubyMvcWeb/Filters","contentType":"directory"},{"name":"Models","path":"IronRubyMvcWeb/Models","contentType":"directory"},{"name":"Properties","path":"IronRubyMvcWeb/Properties","contentType":"directory"},{"name":"Views","path":"IronRubyMvcWeb/Views","contentType":"directory"},{"name":"Default.aspx","path":"IronRubyMvcWeb/Default.aspx","contentType":"file"},{"name":"Global.asax","path":"IronRubyMvcWeb/Global.asax","contentType":"file"},{"name":"Global.asax.cs","path":"IronRubyMvcWeb/Global.asax.cs","contentType":"file"},{"name":"IronRubyIntegrationWeb.csproj","path":"IronRubyMvcWeb/IronRubyIntegrationWeb.csproj","contentType":"file"},{"name":"IronRubyMvcWeb.csproj","path":"IronRubyMvcWeb/IronRubyMvcWeb.csproj","contentType":"file"},{"name":"IronRubyMvcWeb.csproj.user","path":"IronRubyMvcWeb/IronRubyMvcWeb.csproj.user","contentType":"file"},{"name":"Routes.rb","path":"IronRubyMvcWeb/Routes.rb","contentType":"file"},{"name":"Web.config","path":"IronRubyMvcWeb/Web.config","contentType":"file"}],"totalCount":15},"":{"items":[{"name":"IronMvcSpecs","path":"IronMvcSpecs","contentType":"directory"},{"name":"IronRubyMvc.Tests","path":"IronRubyMvc.Tests","contentType":"directory"},{"name":"IronRubyMvc","path":"IronRubyMvc","contentType":"directory"},{"name":"IronRubyMvcWeb","path":"IronRubyMvcWeb","contentType":"directory"},{"name":"VS Templates","path":"VS Templates","contentType":"directory"},{"name":"dependencies","path":"dependencies","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"IronRubyMvc.sln","path":"IronRubyMvc.sln","contentType":"file"},{"name":"IronRubyMvcKey.public","path":"IronRubyMvcKey.public","contentType":"file"},{"name":"IronRubyMvcKey.snk","path":"IronRubyMvcKey.snk","contentType":"file"},{"name":"README.markdown","path":"README.markdown","contentType":"file"}],"totalCount":11}},"fileTreeProcessingTime":15.197923000000001,"foldersToFetch":[],"repo":{"id":1029357,"defaultBranch":"master","name":"ironrubymvc","ownerLogin":"casualjim","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-10-27T17:45:34.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/456109?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"f9b28881187865dcff3389231e627ee2c4f93d14","listCacheKey":"v0:1613957167.019608","canEdit":false,"refType":"tree","currentOid":"f9b28881187865dcff3389231e627ee2c4f93d14"},"path":"IronRubyMvcWeb/Controllers/HomeController.rb","currentUser":null,"blob":{"rawLines":["require \"HomeModel\"\r","require 'MyFilter'\r","\r","#class HomeModel\r","# def salutation\r","# \"ASP.NET MVC <3 IronRuby!!!\"\r","# end\r","#end\r","\r","\r","\r","class HomeController < Controller\r"," \r"," before_action :index do |context|\r"," context.request_context.http_context.response.write(\"Hello world
\")\r"," end\r"," \r"," before_action :index, :method_filter\r"," \r"," filter :index, MyFilter\r"," \r"," alias_action :my_method, :index_again\r"," non_action :my_helper_method\r"," accept_verbs :only_post, :post\r"," \r"," def index\r","\t\tview('index', 'layout', HomeModel.new)\r"," end\r"," \r"," def my_method\r"," view('index', 'layout', HomeModel.new)\r"," end\r"," \r"," def my_helper_method\r"," view('index', 'layout', HomeModel.new)\r"," end\r"," \r"," def only_post\r"," view('index', 'layout', HomeModel.new)\r"," end\r"," \r"," def raise_error\r"," raise \"This is supposed to happen\"\r"," end\r"," \r"," def validation\r"," view\r"," end\r"," \r"," def validate\r"," model_state.add_model_error(\"username\".to_clr_string, \"You must specify a username.\") \r"," model_state.add_model_error(\"password\".to_clr_string, \"You must specify a password.\") \r"," model_state.add_model_error \"_FORM\", \"The current password is incorrect or the new password is invalid.\"\r"," view 'validation'\r"," end\r"," \r"," def method_filter(context)\r"," context.request_context.http_context.response.write(\"From method filter
\")\r"," end\r","end"],"stylingDirectives":[[{"start":0,"end":7,"cssClass":"pl-en"},{"start":8,"end":19,"cssClass":"pl-s"}],[{"start":0,"end":7,"cssClass":"pl-en"},{"start":8,"end":18,"cssClass":"pl-s"}],[],[{"start":0,"end":17,"cssClass":"pl-c"}],[{"start":0,"end":18,"cssClass":"pl-c"}],[{"start":0,"end":34,"cssClass":"pl-c"}],[{"start":0,"end":7,"cssClass":"pl-c"}],[{"start":0,"end":5,"cssClass":"pl-c"}],[],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":20,"cssClass":"pl-v"},{"start":23,"end":33,"cssClass":"pl-v"}],[],[{"start":2,"end":15,"cssClass":"pl-en"},{"start":16,"end":22,"cssClass":"pl-pds"},{"start":23,"end":25,"cssClass":"pl-k"},{"start":27,"end":34,"cssClass":"pl-s1"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-kos"},{"start":12,"end":27,"cssClass":"pl-en"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":28,"end":40,"cssClass":"pl-en"},{"start":40,"end":41,"cssClass":"pl-kos"},{"start":41,"end":49,"cssClass":"pl-en"},{"start":49,"end":50,"cssClass":"pl-kos"},{"start":50,"end":55,"cssClass":"pl-en"},{"start":55,"end":56,"cssClass":"pl-kos"},{"start":56,"end":75,"cssClass":"pl-s"},{"start":75,"end":76,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":15,"cssClass":"pl-en"},{"start":16,"end":22,"cssClass":"pl-pds"},{"start":22,"end":23,"cssClass":"pl-kos"},{"start":24,"end":38,"cssClass":"pl-pds"}],[],[{"start":2,"end":8,"cssClass":"pl-en"},{"start":9,"end":15,"cssClass":"pl-pds"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":17,"end":25,"cssClass":"pl-v"}],[],[{"start":2,"end":14,"cssClass":"pl-en"},{"start":15,"end":25,"cssClass":"pl-pds"},{"start":25,"end":26,"cssClass":"pl-kos"},{"start":27,"end":39,"cssClass":"pl-pds"}],[{"start":2,"end":12,"cssClass":"pl-en"},{"start":13,"end":30,"cssClass":"pl-pds"}],[{"start":2,"end":14,"cssClass":"pl-en"},{"start":15,"end":25,"cssClass":"pl-pds"},{"start":25,"end":26,"cssClass":"pl-kos"},{"start":27,"end":32,"cssClass":"pl-pds"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":11,"cssClass":"pl-en"}],[{"start":2,"end":6,"cssClass":"pl-en"},{"start":6,"end":7,"cssClass":"pl-kos"},{"start":7,"end":14,"cssClass":"pl-s"},{"start":14,"end":15,"cssClass":"pl-kos"},{"start":16,"end":24,"cssClass":"pl-s"},{"start":24,"end":25,"cssClass":"pl-kos"},{"start":26,"end":35,"cssClass":"pl-v"},{"start":35,"end":36,"cssClass":"pl-kos"},{"start":36,"end":39,"cssClass":"pl-en"},{"start":39,"end":40,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":15,"cssClass":"pl-en"}],[{"start":4,"end":8,"cssClass":"pl-en"},{"start":8,"end":9,"cssClass":"pl-kos"},{"start":9,"end":16,"cssClass":"pl-s"},{"start":16,"end":17,"cssClass":"pl-kos"},{"start":18,"end":26,"cssClass":"pl-s"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":28,"end":37,"cssClass":"pl-v"},{"start":37,"end":38,"cssClass":"pl-kos"},{"start":38,"end":41,"cssClass":"pl-en"},{"start":41,"end":42,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":22,"cssClass":"pl-en"}],[{"start":4,"end":8,"cssClass":"pl-en"},{"start":8,"end":9,"cssClass":"pl-kos"},{"start":9,"end":16,"cssClass":"pl-s"},{"start":16,"end":17,"cssClass":"pl-kos"},{"start":18,"end":26,"cssClass":"pl-s"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":28,"end":37,"cssClass":"pl-v"},{"start":37,"end":38,"cssClass":"pl-kos"},{"start":38,"end":41,"cssClass":"pl-en"},{"start":41,"end":42,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":15,"cssClass":"pl-en"}],[{"start":4,"end":8,"cssClass":"pl-en"},{"start":8,"end":9,"cssClass":"pl-kos"},{"start":9,"end":16,"cssClass":"pl-s"},{"start":16,"end":17,"cssClass":"pl-kos"},{"start":18,"end":26,"cssClass":"pl-s"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":28,"end":37,"cssClass":"pl-v"},{"start":37,"end":38,"cssClass":"pl-kos"},{"start":38,"end":41,"cssClass":"pl-en"},{"start":41,"end":42,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":17,"cssClass":"pl-en"}],[{"start":4,"end":9,"cssClass":"pl-en"},{"start":10,"end":38,"cssClass":"pl-s"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":16,"cssClass":"pl-en"}],[{"start":4,"end":8,"cssClass":"pl-en"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":14,"cssClass":"pl-en"}],[{"start":4,"end":15,"cssClass":"pl-en"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":16,"end":31,"cssClass":"pl-en"},{"start":31,"end":32,"cssClass":"pl-kos"},{"start":32,"end":42,"cssClass":"pl-s"},{"start":42,"end":43,"cssClass":"pl-kos"},{"start":43,"end":56,"cssClass":"pl-en"},{"start":56,"end":57,"cssClass":"pl-kos"},{"start":58,"end":88,"cssClass":"pl-s"},{"start":88,"end":89,"cssClass":"pl-kos"}],[{"start":4,"end":15,"cssClass":"pl-en"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":16,"end":31,"cssClass":"pl-en"},{"start":31,"end":32,"cssClass":"pl-kos"},{"start":32,"end":42,"cssClass":"pl-s"},{"start":42,"end":43,"cssClass":"pl-kos"},{"start":43,"end":56,"cssClass":"pl-en"},{"start":56,"end":57,"cssClass":"pl-kos"},{"start":58,"end":88,"cssClass":"pl-s"},{"start":88,"end":89,"cssClass":"pl-kos"}],[{"start":4,"end":15,"cssClass":"pl-en"},{"start":15,"end":16,"cssClass":"pl-kos"},{"start":16,"end":31,"cssClass":"pl-en"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":39,"end":40,"cssClass":"pl-kos"},{"start":41,"end":108,"cssClass":"pl-s"}],[{"start":4,"end":8,"cssClass":"pl-en"},{"start":9,"end":21,"cssClass":"pl-s"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":19,"cssClass":"pl-en"},{"start":19,"end":20,"cssClass":"pl-kos"},{"start":20,"end":27,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-kos"}],[{"start":4,"end":11,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-kos"},{"start":12,"end":27,"cssClass":"pl-en"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":28,"end":40,"cssClass":"pl-en"},{"start":40,"end":41,"cssClass":"pl-kos"},{"start":41,"end":49,"cssClass":"pl-en"},{"start":49,"end":50,"cssClass":"pl-kos"},{"start":50,"end":55,"cssClass":"pl-en"},{"start":55,"end":56,"cssClass":"pl-kos"},{"start":56,"end":82,"cssClass":"pl-s"},{"start":82,"end":83,"cssClass":"pl-kos"}],[{"start":2,"end":5,"cssClass":"pl-k"}],[{"start":0,"end":3,"cssClass":"pl-k"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/casualjim/ironrubymvc/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"HomeController.rb","displayUrl":"https://github.com/casualjim/ironrubymvc/blob/f9b28881187865dcff3389231e627ee2c4f93d14/IronRubyMvcWeb/Controllers/HomeController.rb?raw=true","headerInfo":{"blobSize":"1.32 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"bbc1d33","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fcasualjim%2Fironrubymvc%2Fblob%2Ff9b28881187865dcff3389231e627ee2c4f93d14%2FIronRubyMvcWeb%2FControllers%2FHomeController.rb","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"60","truncatedSloc":"44"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Ruby","languageID":326,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/casualjim/ironrubymvc/blob/f9b28881187865dcff3389231e627ee2c4f93d14/IronRubyMvcWeb/Controllers/HomeController.rb","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/casualjim/ironrubymvc/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/casualjim/ironrubymvc/raw/f9b28881187865dcff3389231e627ee2c4f93d14/IronRubyMvcWeb/Controllers/HomeController.rb","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"HomeController","kind":"class","ident_start":141,"ident_end":155,"extent_start":135,"extent_end":1353,"fully_qualified_name":"HomeController","ident_utf16":{"start":{"line_number":11,"utf16_col":6},"end":{"line_number":11,"utf16_col":20}},"extent_utf16":{"start":{"line_number":11,"utf16_col":0},"end":{"line_number":60,"utf16_col":0}}},{"name":"index","kind":"method","ident_start":492,"ident_end":497,"extent_start":488,"extent_end":546,"fully_qualified_name":"HomeController::index","ident_utf16":{"start":{"line_number":25,"utf16_col":6},"end":{"line_number":25,"utf16_col":11}},"extent_utf16":{"start":{"line_number":25,"utf16_col":2},"end":{"line_number":27,"utf16_col":5}}},{"name":"my_method","kind":"method","ident_start":558,"ident_end":567,"extent_start":554,"extent_end":618,"fully_qualified_name":"HomeController::my_method","ident_utf16":{"start":{"line_number":29,"utf16_col":6},"end":{"line_number":29,"utf16_col":15}},"extent_utf16":{"start":{"line_number":29,"utf16_col":2},"end":{"line_number":31,"utf16_col":5}}},{"name":"my_helper_method","kind":"method","ident_start":630,"ident_end":646,"extent_start":626,"extent_end":697,"fully_qualified_name":"HomeController::my_helper_method","ident_utf16":{"start":{"line_number":33,"utf16_col":6},"end":{"line_number":33,"utf16_col":22}},"extent_utf16":{"start":{"line_number":33,"utf16_col":2},"end":{"line_number":35,"utf16_col":5}}},{"name":"only_post","kind":"method","ident_start":709,"ident_end":718,"extent_start":705,"extent_end":769,"fully_qualified_name":"HomeController::only_post","ident_utf16":{"start":{"line_number":37,"utf16_col":6},"end":{"line_number":37,"utf16_col":15}},"extent_utf16":{"start":{"line_number":37,"utf16_col":2},"end":{"line_number":39,"utf16_col":5}}},{"name":"raise_error","kind":"method","ident_start":781,"ident_end":792,"extent_start":777,"extent_end":839,"fully_qualified_name":"HomeController::raise_error","ident_utf16":{"start":{"line_number":41,"utf16_col":6},"end":{"line_number":41,"utf16_col":17}},"extent_utf16":{"start":{"line_number":41,"utf16_col":2},"end":{"line_number":43,"utf16_col":5}}},{"name":"validation","kind":"method","ident_start":851,"ident_end":861,"extent_start":847,"extent_end":878,"fully_qualified_name":"HomeController::validation","ident_utf16":{"start":{"line_number":45,"utf16_col":6},"end":{"line_number":45,"utf16_col":16}},"extent_utf16":{"start":{"line_number":45,"utf16_col":2},"end":{"line_number":47,"utf16_col":5}}},{"name":"validate","kind":"method","ident_start":890,"ident_end":898,"extent_start":886,"extent_end":1222,"fully_qualified_name":"HomeController::validate","ident_utf16":{"start":{"line_number":49,"utf16_col":6},"end":{"line_number":49,"utf16_col":14}},"extent_utf16":{"start":{"line_number":49,"utf16_col":2},"end":{"line_number":54,"utf16_col":5}}},{"name":"method_filter","kind":"method","ident_start":1234,"ident_end":1247,"extent_start":1230,"extent_end":1348,"fully_qualified_name":"HomeController::method_filter","ident_utf16":{"start":{"line_number":56,"utf16_col":6},"end":{"line_number":56,"utf16_col":19}},"extent_utf16":{"start":{"line_number":56,"utf16_col":2},"end":{"line_number":58,"utf16_col":5}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/casualjim/ironrubymvc/branches":{"post":"_jAMJ_wTS_cqiWps44s_jbciPGxUDH3fkKIP0IHioauymfA5ys5c2j_ZyUHVAiBllSQp0cl8CSlZDrg3d4z1ww"},"/repos/preferences":{"post":"auW3Jttp7o802CelZn8GoW7fLNpZJw0d68mjwGMd_sIJT2tBP3uXFtYA2CxtnN50_i49Kz4l4vQojYZulWipwg"}}},"title":"ironrubymvc/IronRubyMvcWeb/Controllers/HomeController.rb at f9b28881187865dcff3389231e627ee2c4f93d14 ยท casualjim/ironrubymvc"}