To turn off without having to add options:
# application.rb
config.generators.assets = false
config.generators.helper = false
<%= f.select :month, options_for_select([["January", "1"], ["February", "2"], ["March", "3"],["April", "4"], ["May", "5"], ["June", "6"], ["July", "7"], ["August", "8"], ["September", "9"], ["October", "10"], ["November", "11"], ["December", "12"]]) %> |
zip -r file_name.zip .
zip -r file_name.zip . -x ".*" -x "*/.*"
Just go to wordpress installation directory inside your www directory in terminal and give write permission to your web server which is running as www-data
sudo chown -R www-data wordpress
via StackExchange
Here's command to do it
git remote set-url origin git://new.url.here
Like this
git remote set-url origin https://ashiknesin@github.com/HugeThoughts/simple-payroll.git
Basically we are going to retrieve the details from database (in my case its employee name & their number) and assign it to an array.
Then we populate that array to the select
# /app/views/payslips/index.html.erb
<% emp_array = Employee.all.map { |emp| [emp.name, emp.emp_no] } %>
<%= f.select :emp_no, options_for_select(emp_array) %>
All rules and guidelines in this document apply to HTML files.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Icon Legend:
·
Space, ⇥
Tab, ↵
Enter/Return
All rules and guidelines in this document apply to css/scss files unless otherwise noted.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Most sections are broken up into two parts:
All rules and guidelines in this document apply to jQuery files unless otherwise noted.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Most sections are broken up into two parts:
sed -i -e '$a\Hello World' filename