I hereby claim:
- I am donnfelker on github.
- I am donnfelker (https://keybase.io/donnfelker) on keybase.
- I have a public key ASDm0EqsT8YBPE8L0BlrQxAppoKpbs_C1r-ZER8m2blYmAo
To claim this, I am signing this object:
| <!-- File uploads will be disabled for any trix editor in this div --> | |
| <div data-controller="registrations"> | |
| <!-- Other html elements ... --> | |
| <div class="form-group"> | |
| <%= form.label :bio, "Bio" %> | |
| <!-- File uploads, and the attachment button will be disabled in this rich text (trix) editor --> | |
| <%= form.rich_text_area :bio %> | |
| </div> |
| [user] | |
| name = Your Name | |
| email = [email protected] | |
| [alias] | |
| A = add -A | |
| a = add | |
| aa = add --all | |
| ae = add --edit | |
| ai = add --interactive | |
| amend = commit --amend -C HEAD |
I hereby claim:
To claim this, I am signing this object:
| sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "If found, contact YOUR-NAME at XXX-XXX-XXXX" |
| /*! Color themes for Google Code Prettify | MIT License | github.com/jmblog/color-themes-for-google-code-prettify */ | |
| .prettyprint { | |
| background: #f5f5f5; | |
| font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace; | |
| border: 0 !important; | |
| padding: 16px; | |
| } | |
| .pln { | |
| color: #4d4d4c; |
| package com.greenlifesoftware.robolectricpractice; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.robolectric.Robolectric; | |
| import org.robolectric.RobolectricGradleTestRunner; | |
| import org.robolectric.annotation.Config; | |
| import static org.junit.Assert.assertNotNull; | |
| @BindingAdapter(“isVisible”) | |
| fun setIsVisible(view: View, isVisible: Boolean) { | |
| if (isVislble) { | |
| view.visibility = View.VISIBLE | |
| } else { | |
| view.visibility = View.GONE | |
| } | |
| } |
| # | |
| # Build configuration for Circle CI | |
| # | |
| # See this thread for speeding up and caching directories: | |
| # https://discuss.circleci.com/t/installing-android-build-tools-23-0-2/924 | |
| # | |
| general: | |
| artifacts: | |
| - /home/ubuntu/AndroidCI/app/build/outputs/apk/ |
By default, Rails applications build URLs based on the primary key -- the id column from the database. Imagine we have a Person model and associated controller. We have a person record for Bob Martin that has id number 6. The URL for his show page would be:
/people/6
But, for aesthetic or SEO purposes, we want Bob's name in the URL. The last segment, the 6 here, is called the "slug". Let's look at a few ways to implement better slugs.