| Start |
|---|
| Playing with Tables using rails console View tables Delete any table. Remove index from existing column where Remove foreign key constraint where Add column for example:- |
| Rails methods - returning boolean values Any method in Rails model can return boolean value. simple method- Again simple method returning boolean value- So,the same method will now return boolean instead of anything else ????. |
| Handling the error - undefined method `where' for #Array:0x000000071923f8 Sometimes we want to use a There is a precise solution for this by using EXAMPLE:- Suppose i need to find all user profiles(UserProfile) which are active which is not a user(User) with an id=10. So above query will fail after But using joins,will make it work, As |
Read Article
https://develop.horje.com/learn/1434/reference