GithubHelp home page GithubHelp logo

β版リリースに向けて about hello_idea HOT 7 CLOSED

rkdora avatar rkdora commented on September 26, 2024
β版リリースに向けて

from hello_idea.

Comments (7)

rkdora avatar rkdora commented on September 26, 2024

マスターアカウントの作成に関して質問

マスターアカウントは他人の投稿を削除できるものとする
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.

rkdora avatar rkdora commented on September 26, 2024

レンタルサーバーに関して

さくらVPSを検討中

from hello_idea.

tanacchi avatar tanacchi commented on September 26, 2024

Rails Tutorial の 10.4.1 の章にそれっぽいこと書いてあるからそれを参考にしてみてはどうでしょうか。
難しそうだからって避けたらダメよ

from hello_idea.

rkdora avatar rkdora commented on September 26, 2024

おかげさまでできました。
ありがとうございます。

from hello_idea.

tanacchi avatar tanacchi commented on September 26, 2024

思ったのが、こういうタスク管理(やることリスト・バグ報告系)を目的とした掲示板はIssueよりProjectを利用した方が適してないかっていう。
https://github.com/MyDry/gait_tuner/projects/1
を参考にしてみては

from hello_idea.

rkdora avatar rkdora commented on September 26, 2024

たしかに。
やってみよう

from hello_idea.

tanacchi avatar tanacchi commented on September 26, 2024

余談ではないけど、projectsのカードにissueやpull request が貼れるんだよね。
カードにの中身に#(半角数字)で出来ます

from hello_idea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.