continue with the prior article, I'll try to add a sign up link to our home page.
<%= link_to "Sign up now!", '#', :class => "signup_button round" %>
Remember, # means a blank link, a link to itself.
the generated html will be:
<a href="#" class="signup_button round">Sign up now!</a>
note:
right now, the <a> tag has two classed, seperated by a space.
<a href="#" class="signup_button round">
this is convenient for the common case of an element with two kinds of styles.
Ok, we are done with adding a sign up button.
发表评论
-
12.3.3 scaling issue of the status feed
2011-10-30 17:54 816the problem of the implementati ... -
12.3 the status feed
2011-10-30 15:34 8521. we need to get all the micro ... -
12.2 a working follow button with Ajax
2011-10-29 18:10 9101. in the last chapter, in the ... -
12.2 a web interface for following and followers.
2011-10-28 22:14 8761.before we do the UI, we need ... -
12. following user, 12.1 relationship model
2011-10-18 14:29 7471. we need to use a relationshi ... -
11.3 manipulating microposts.
2011-10-17 15:31 8931. since all micropost actions ... -
11.2 show microposts.
2011-10-17 12:01 6981. add test to test the new use ... -
11.1 user micropost -- a micropost model.
2011-10-17 10:43 11031. we will first generate a mic ... -
10.4 destroying users.
2011-10-16 15:47 733in this chapter, we will add de ... -
10.3 showing users list
2011-10-15 20:41 768in this chapter, we will do use ... -
10.2 protect pages.
2011-10-15 15:11 657again, we will start from TD ... -
10.1 updating users.
2011-10-14 18:30 7051. git checkout -b updating-use ... -
9.4 sign out
2011-10-13 15:21 732whew!!!, last chapter is a long ... -
9.3 sign in success.
2011-10-12 15:39 7411. we will first finish the cre ... -
9.1 about flash.now[:error] vs flash[:error]
2011-10-12 15:37 722There’s a subtle difference ... -
9.2 sign in failure
2011-10-12 12:19 655start from TDD!!! 1. requir ... -
9.1 sessions
2011-10-12 10:00 643a session is a semi-permanent c ... -
what test framework should you use?
2011-10-11 16:56 0for integration test, i have no ... -
what test framework should you use?
2011-10-11 16:56 0<p>for integration test, ... -
8.4 rspec integration tests
2011-10-11 16:53 714in integration test, you can te ...
相关推荐
"Add to Home"功能在移动Web开发中是一个常见的特性,允许用户将网页快捷方式添加到他们的设备主屏幕上,类似于一个原生应用的图标。这个功能为用户提供了一种方便的方式,可以快速访问他们频繁使用的Web应用,而...
In this step we add a simple COM object to our server using the New ATL Object Wizard.(25KB)
Add Custom Properties to a PropertyGrid.c#属性有用的例子。 http://www.codeproject.com/KB/vb/PropertyGridEx.aspx
An easy way to add a Ribbon Panel Office 2007style
为了进一步提升用户体验,开发者们制作了各种扩展程序,如“Add a link to trello-crx”,它为Chrome浏览器提供了与Trello更紧密集成的功能。 **1. 插件功能介绍** “Add a link to trello-crx”插件的主要作用是...
Add Python to the search path on Windows
matlab功能函数,给直线加上箭头,使之成为矢线,起点[a,b],终点[c,d] 引用格式:add_arrow_to_line(a, c, b, d, color, linewidth, length_arrow) length_arrow指箭头边线长度
This is a good example to add your programs’ icon to the Systray. This Zip also includes a helpful example.
在使用Microsoft Visual C++ 6.0(简称VC6)进行C++开发时,有时会遇到"Add Files to Project"功能失效的问题,这使得无法通过菜单项将新文件添加到项目中,对开发流程造成不便。本文将详细介绍如何解决这个问题,并...
用法将该组件放置在application.hbs文件中,如下所示{{ add-to-homescreen }}安装ember install ember-add-to-homescreen 然后: ember g ember-add-to-homescreen <name> 快速启动支持对于的1.0之前的版本,请确保...
健身运动 健身运动 Fitness Love_V2.xd 1_Walkthoughs 1.png ...19_Add Food_Select a Meal.png 20_Workout Schedule.png 21_Workout Schedule_Scroll up.png 22_Meal_Nutrition Info_Chart .....
you can add/change the stuff in the last member.php page.-This is a login System, it has 3 files login.php register.php lastmember.php once a user has been logged in it will return him/her to the home...
In few words: The ViewHolder has one function - to provide a link to the view in a layout. So when you use the RecyclerView and you need to add a new View Type in your list - you must create a new ...
You’ll also explore how to use Single File Components and the Vue.js Command Line Interface (CLI) to build components in a single file and add in build tools as you see fit. Getting started with a ...
Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], then there are four ...
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
You will immediately get a link to source page, direct download link, alive status of download link and other informations in one well-arranged table in the style of MS Excel. Are you a software ...
We’ll be happy to provide a copy (up-to-date) of this solution manual ourselves to anyone who asks. Acknowledgments: Over the years, several students and colleagues have helped us prepare this ...
Teach Your Kids to Code is the perfect companion to any introductory programming class or after-school meet-up, or simply your educational efforts at home. Spend some fun, productive afternoons at the...