Skip to content

Instantly share code, notes, and snippets.

@alikhajeh1
Created February 1, 2012 16:10
Show Gist options
  • Save alikhajeh1/1717757 to your computer and use it in GitHub Desktop.
Save alikhajeh1/1717757 to your computer and use it in GitHub Desktop.
Web App Experiment New Page, GET /videos/new returns this page
<!DOCTYPE html>
<html>
<head>
<title>MyApp</title>
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/twitter/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/scaffolds.css?body=1" media="all" rel="stylesheet" type="text/css" />
<link href="/assets/videos.css?body=1" media="all" rel="stylesheet" type="text/css" />
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery-ui.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/alerts.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/buttons.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/dropdown.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/modal.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/twipsy.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/popover.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/scrollspy.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap/tabs.js?body=1" type="text/javascript"></script>
<script src="/assets/twitter/bootstrap.js?body=1" type="text/javascript"></script>
<script src="/assets/videos.js?body=1" type="text/javascript"></script>
<script src="/assets/application.js?body=1" type="text/javascript"></script>
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
</head>
<body>
<h1>New video</h1>
<form accept-charset="UTF-8" action="/videos" class="new_video" enctype="multipart/form-data" id="new_video" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="GkkBHJ+7Naw7+wQ6ID8e8b97AUoDAUJWfMQmPn9EZKY=" /></div>
<div class="field">
<label for="video_name">Name</label><br />
<input id="video_name" name="video[name]" size="30" type="text" />
</div>
<div class="field">
<label for="video_author">Author</label><br />
<input id="video_author" name="video[author]" size="30" type="text" />
</div>
<div class="field">
<label for="video_description">Description</label><br />
<textarea cols="40" id="video_description" name="video[description]" rows="20"></textarea>
</div>
<div class="field">
<label for="video_movie">Movie</label><br />
<input id="video_movie" name="video[movie]" type="file" />
</div>
<div class="actions">
<input name="commit" type="submit" value="Create Video" />
</div>
</form>
<a href="/videos">Back</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment