n-ryo / camp_weekday_task5 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from intern2019spring/camp_weekday_task5
This project forked from intern2019spring/camp_weekday_task5
アプリ名(ディレクトリ名)は camp_weekday_task5
です。
コントローラとビューを作成して生年月日占いアプリを作成して下さい。
URLに指定した値(8桁の数値)を使用して生年月日から占いを行います。
URLは /fortunetelling/
までは固定で、それ以降をパラメータで受け取る必要があります。
params[XXX]で受け取った値は文字列として認識されるので、 to_i
メソッドを使用して数値に変換してから計算する必要があります。
コントローラ名は fortunetellings
、アクション名は show
で作成して下さい。
あなたの誕生日は1994年4月7日です。
のように表示できること。あなたの誕生日は1994年2月24日です。今日があなたの誕生日です。
のように表示できること。あなたの星座は牡羊座です。
のように正しい星座を表示できること。あなたは24歳です。
のように正しい年齢を表示できること。今日のあなたの運勢は大吉です。
のように以下の中からランダムで運勢を表示できること。大吉 中吉 吉 小吉 凶 大凶
例1の完成イメージ
例2の完成イメージ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.