Comments (7)
マスターアカウントの作成に関して質問
マスターアカウントは他人の投稿を削除できるものとする
user_idが1のものをマスターアカウントにしようと思った
user_helper.rbにて
def master_user
@master_user = User.find_by(id: 1)
end
view/topics/_detail.html.erbにて
<% if topic.user_id == current_user.id || topic.user_id == master_user.id%>
<%= link_to edit_topic_path(id: topic.id) do %>
<% end %>
<%= link_to topic_path(id: topic.id), method: :delete do%>
<% end %>
<% end %>
で行けると思ったが
表示されない。
ヘルプ
from hello_idea.
レンタルサーバーに関して
さくらVPSを検討中
from hello_idea.
Rails Tutorial の 10.4.1 の章にそれっぽいこと書いてあるからそれを参考にしてみてはどうでしょうか。
難しそうだからって避けたらダメよ
from hello_idea.
おかげさまでできました。
ありがとうございます。
from hello_idea.
思ったのが、こういうタスク管理(やることリスト・バグ報告系)を目的とした掲示板はIssueよりProjectを利用した方が適してないかっていう。
https://github.com/MyDry/gait_tuner/projects/1
を参考にしてみては
from hello_idea.
たしかに。
やってみよう
from hello_idea.
余談ではないけど、projectsのカードにissueやpull request が貼れるんだよね。
カードにの中身に#(半角数字)で出来ます
from hello_idea.
Related Issues (20)
- bundle installが通らないとき(sasscで止まるとき)
- バグ報告1/10時点 HOT 1
- アイデアの海の今後 HOT 5
- アイデアの海をSNSに移しませんか HOT 9
- feature/change-layout-idea-seaも含めたレイアウト崩れを列挙 HOT 3
- バグ報告(スマホ版)編集・削除ボタンについて
- バグ報告 ユーザー詳細のいいねしたアイデア HOT 1
- バグ報告 ユーザー詳細のニーズ・アイデア・いいねの順序
- バグ報告 0ポイント投資で通知
- ログインなしで見れるようにする HOT 9
- マンダラート表示崩れ(いずれ対応) HOT 2
- [バグ]ユーザー詳細のいいね済みのアイデアからいいねを取り消しできない HOT 2
- ver1.0.0の内容 HOT 4
- [バグ]いいねを連打 HOT 1
- [future]ユーザー詳細のアイデアにアイデア帳のアイデア
- ER図を出力する方法
- SNSアカウントによるログインの提案 HOT 1
- [miss]単語追加時の最大文字数
- [バグ]ユーザー詳細のアイデア欄
- [バグ]ログイン状態のURL直打ちで新規登録ページ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello_idea.