* textarea component * docs / faq: add new follower * credits * lang * moving copy higher * typo * Update docs/faqs.md typo Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md lang Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md lang Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update app/javascript/article-form/components/Title.jsx Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> * Update docs/faqs.md Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com> Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2.3 KiB
| title |
|---|
| FAQs |
Frequently Asked Questions
How do I build my local copy of the Ruby source code documentation?
cd docs
make ruby-doc
Then open .static/ruby-doc/index.html in the docs directory and browse the
Ruby documentation
How do I enable logging to standard output in development?
By default Rails logs to log.development.log.
If, instead, you wish to log to STDOUT you can add the variable:
export RAILS_LOG_TO_STDOUT=true
to your own .env file.
How do I see comments in the Feed?
On the home Feed, we only show comments above certain "score". It's likely the comments in the local environment will never meet this score. If you want to see comments locally, you will need to update the score of your local comments manually. Here's how:
- Open the terminal.
- Run
psql PracticalDeveloper_developmentto openpsql, the PostgreSQL terminal. - Enter
update comments set score = 30;. - Type
exitto leave the PostgreSQL terminal.
Once you refresh the app, you should be able to see some comments in the Feed.
How do I make someone follow me on my local environment?
In certain cases, for example when testing various functionalities, you may need to be able to make some user follow you. Here's how:
- Open the rails console by running
rails cin your terminal. - Get any user you want to follow you, for example
user = User.first. - Then make this user follow you:
user.follow(your_username).
Boom, you have a new follower!
How do I remove / leave organization I created?
- Open the rails console by running
rails cin your terminal. - Enter the following commands:
user = User.find_by(username: "your_username") organization_id = Organization.find_by(slug: "organization_slug").id user.organization_memberships.where(organization_id: organization_id).destroy_all
How do I add credits to my account?
If you ever want to add Listings locally, you must have credits on your account to "pay" for listing. Here's how:
- Open the rails console
rails c. - Enter the following commands:
user = User.find_by(username: "your_username") Credit.add_to(user, 1000)
^ This will add 1000 credits to your account. But you know, you can't really buy anything with it :D