Difference Between ALTER, CHANGE, and MODIFY COLUMN in MySQL
Method DROP Default Change Default Rename Column Change Datatype Column Order ALTER CHANGE MODIFY ...
Read MoreMethod DROP Default Change Default Rename Column Change Datatype Column Order ALTER CHANGE MODIFY ...
Read MorePosted by papadiddydoo | Jul 16, 2012 | Programming, Rails, Ruby |
If you have already created data models in your rails app but wish to scaffold or stub out the controller and the views without starting over the models, you can use the option scaffold_controller rails generate...
Read MorePosted by papadiddydoo | Jul 6, 2012 | Programming, Rails, Ruby |
Ever wonder how to convert the String values of “true” or “false” to the boolean value true false in rails? Rails, specifically ActiveRecord::ConnectionAdapters::Column has a built in function which does...
Read MorePosted by papadiddydoo | Jul 5, 2012 | Programming, Ruby |
When multiple conditions (OR) in case statement lead to the same code. Tedious and inefficient way…. case telecom_type_code when 1 telecom.phone_number = telecom_value telecom.url_scheme = tel_url_scheme when 2...
Read MorePosted by papadiddydoo | Jul 5, 2012 | Programming, Rails, Ruby |
Single line comments in rails view (erb.html file). <%= here is a single line comment %> Multiline comments can be done as follows. <% =begin here we can put some multi-line comments for all to see. =end...
Read More
Recent Comments