sharkymark/pagination_rails
You got a honking ActiveRecord result and want to let users page through the result? Read on.
Discovered public repositories for sharkymark in the GitHub catalog.
You got a honking ActiveRecord result and want to let users page through the result? Read on.
Sometimes, you want to show view ERB specific to a device type.
A day in the life of me using git for Rails development.
It seems I use a lot of these MySQL commands when managing my databases.
As you get going, you'll want ways to run multiple Rails apps at the same time, as well as run the same app across environments.
If you’re building a web application with a database, you may want more than one user, which means adding row-level security, and authentication. Rails helps with a cool gem called Devise. Devise creates a User table and views to authenticate into the web app with a session, and then you can add authentication to each view to make sure you have a valid session to see that view.
AWS Elastic Beanstalk lets you easily build and configure Rails instances. The .ebextensions directory and xxx.config files lets you further configure the deployment, in particular prevent a rake db:migrate or an asset compilation. This is an example of how I did it.
This is a simple python program that takes 2 input parameters, looks up a percentage in a dict/hash based on one input parameter, and applies it to the second input parameter.