Use CoffeeScript and JQuery to bind click event at website for getting parameters of a form at URL. In someone.js.coffee file. The following example is modified from reference 1,2,3 and 4 to meet my need. get_parameters_from_url = -> aryParams = {} # Initial an empty object rawVars = window.location.search.substring(1).split("&") #window is used to getting global variables of browsers in coffeescript. location.search is the query string at URL including the question
read moreWanna use functions, which are defined in files of coffeescript language, to change one of CSS attributes such as display when an user clicking a button or element at a web page? You can follow below instructions. At side of web page, for example: Write down a button of HTML 5 for triggering event <button type="button" name="btn-veggie-list" class="btn-veggie-list">Veggie list</button> Target HTML. For example, it’s an unordered list for items in
read moreGrape gem is the core of API service, which bulits API endpoints and handles each exception. Devise gem’s role is the user management system. Doorkeeper gem manages oauth clients, which are related with users in Devise gem, and record oauth clients' app id, secret, scopes, authorization codes and access tokens. Doorkeeper takes responsibilities about giving, revoking, and refreshing authorization codes and access tokens. Wine_bouncer gem’s role is a guard of
read moreInstructions for installing and configuring sendmail software with action_mailer of rails in Ubuntu. It might be some complicated. 在 Ubuntu 安裝與設定 sendmail 可能會令人覺得複雜,以下是安裝與設定指引: Below statements are for development machines. 以下屬於開發環境機器的設定: Check below option
read moreIf you want to associate your user model, which are built by Devise gem, with OAuth clients, which are authenticated and authorized by Doorkeeper gem, you should follow below instructions. Below instructions come from wiki pages of Doorkeeper gem. Command for Database changes rails generate doorkeeper:application_owner rake db:migrate Configuration at config/initializers/doorkeeper.rb Uncomment or add this statement into block of Doorkeeper.
read more