Adding and pushing to git
git add . (adds all files to commit)
git commit -m "useful message describing what you did"
git push origin master
Or use
git commit -a -m 'added new benchmarks'
to add and commit all files, with the message
No title available
macklin celebrini has autism

bliss lane
YOU ARE THE REASON
official daine visual archive

Andulka
2025 on Tumblr: Trends That Defined the Year
The Stonewall Inn
NASA
"I'm Dorothy Gale from Kansas"
Cosmic Funnies
Noah Kahan
TVSTRANGERTHINGS
almost home

❣ Chile in a Photography ❣
🩵 avery cochrane 🩵

blake kathryn
No title available
tumblr dot com

Product Placement
seen from United States
seen from United States

seen from United States

seen from United States
seen from United States

seen from Saudi Arabia

seen from United Kingdom

seen from Brazil

seen from Türkiye
seen from Bolivia
seen from Singapore
seen from United States
seen from Spain

seen from Italy

seen from Germany
seen from Uzbekistan

seen from Bangladesh

seen from Argentina

seen from Russia
seen from Germany
@cookhappy
Adding and pushing to git
git add . (adds all files to commit)
git commit -m "useful message describing what you did"
git push origin master
Or use
git commit -a -m 'added new benchmarks'
to add and commit all files, with the message
Creating links in Rails
Instead of <a> tags use:
<%= link_to "Text_for_link", "URL" %>
Example of internal link:
<%= link_to "Home", "/" %> this is to root page <%= link_to "About", "/about" %>
Example of external link:
<%= link_to "Facebook", "http://facebook.com" %>
Change route to different name/style
In routes.rb, change
get 'controller/action'
get 'pages/about'
to
get "url_ending_you_want" => 'pages#about'
for example:
get "about" => 'pages#about'
Change the root of your site
In routes.rb use:
root to: 'controller#action_name'
root to: 'controller#page'
for example:
root to: 'pages#home'
Create pages with a pages controller
You can use:
rails generate controller [Name] [action action, etc]
For example:
rails generate controller Pages about home
Upgrading Ruby with rvm
Use
rvm install [version you want]
for example:
rvm install 2.1.1
How to start a new Rails project
Use
rails new project_name
You don't need to make a new directory/folder beforehand because this command will create one with the same name as your project. But if you do have a folder already that you want to use, then just make your project the same name and rails will recognize it exists already.
Btw, you can make a new directory/folder with
mkdir directory_name
Or if you need to specify a place within other folders:
mkdir folder/directory_name