This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Proc.instance_methods(false).sort | |
| показать свои собственные методы экземпляра класса. | |
| без false - покажет вообще все (свои, унаследованные и внедренные). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find(:id, 'user_39').set('вася') | |
| find(:css, 'search').set('вася') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'test_helper' | |
| class YourHelperTest < ActionView::TestCase | |
| test "should work" do | |
| assert_equal "result", your_helper_method | |
| end | |
| end | |
| # оно типа само сделает |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| en: | |
| "true": "yes" | |
| "false": "no" | |
| erb: | |
| <%= t account.send_notifications?.to_s %> | |
| notes: | |
| 1. "" in yaml is necessarily (all of them) |