Skip to content

Commit 11c1753

Browse files
committed
misc
1 parent 5f04da9 commit 11c1753

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

rails/javascript/leaflet-basics.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```javascript
2+
3+
line = L.Polyline(coordinats, initialStyles).addTo(map)
4+
5+
6+
```

rails/routes-to-show-resources.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ruby
2+
# config/routes.rb
3+
get 'activity/show'
4+
```
5+
6+
would let me visit `/activity/show`, but not `/activity/3`, or `/activity/show/3` . I obviously need the former.
7+
8+
```ruby
9+
# config/routes.rb
10+
get 'activity/:id', as 'activity#show'
11+
```

0 commit comments

Comments
 (0)