Search Results for "post-reaction-feature"

Forum Threads

Pull data from another table in a lookup

53
Rails
Hi all, I am looking up a list of articles, depending on the brand ID's - `@articles = Article.where(brand_id: brand_ids)` what i would like to know is there a way to retrieve the brand name in thi...
Jacob Montgomery replied
Solved

Must Read / Must Watch

19
General
I thought I'd start a thread of articles and videos that are super high quality for software developers. Things that make you think and improve your thinking and how you build products. I'll start...
emil mircea replied

Page does not reload, even though javascript comes back with 200

0
General
Chris i followed your tutorial with polymorphic true commenting system, but i ran into an issue with trying to use ajax to refresh the page. The page does not refresh, only when i reload the page a...

Sponsored Post Model?

0
Rails
i want to build a feature where on certain pages I could highlight different posts or jobs. Think of it like a sponsored google ad at the top of the rankings or a sponsored job post. It should be ...
Ketan Anjaria posted

Rails form post creates a 'Do you want to download “<form target>”' prompt on mobile

0
Rails
Hey everyone, I'm just testing my first Rails app on mobile and whenever I submit a form I get a prompt to download the form target. See the screenshot below: [Download Prompt on iPhone8](https:/...
TensAndTwenties posted

Make http POST request that return xml response

1
Rails
I want to make a http POST request that parse XML response and return the value of SessionId field that is inside XML. This is what I tried so far but I want to return SessionId filed that arrives ...
Chris Oliver replied

How to post remote action and no redirect? ActionCable Series

0
Rails
Trying to submit a form that has a create action in another controller but does not redirect to or render the page (just stay on the page). Error: ``` MessagesController#create is missing a templa...
BrandonKlotz posted

Following "Scheduling post" episode with background jobs

4
General
Following Chris great post on scheduling I am using `delayed_job_active_record` to schedule quote from my app to be tweeted and shared on FB. Here is my `quote.rb` model with the current logic: `...
Lykos replied
Solved

Adding a Blog Post Destroy Action and Refactoring Discussion

9
General
Does asdf support ruby > 3.2.0 on Mac Ventura 13.1?
RMazoni replied

Adding a Blog Post Show Action Discussion

2
General
Thank you for explaining the "magic" as well - it really helps to see how it works underneath the hood for better understanding!
CarlosLeonCode replied

Creating A Blog Post Model Discussion

19
General
Awesome! : )
Alan Reid replied

FTX.com REST API POST Authentication FAILS with Ruby on Rails and net/https

0
Rails
Hoping for some help as this one has me baffled... I created a user account and API credentials at FTX.com. They have an interesting Auth setup which is detailed here: xhxtxtxpxsx://docs.ftx.com/...
Joergen posted

How do I post a client ID in a different controllers view?

1
Rails
Hello, I am so very new to Rails that my question might seem odd. But I will try to be as explicit as possible. I have a controller named clients, It shows &lt;%= @client.client_identifier %&gt; - ...
Simon Cooper replied

Setting up “Next post” and “Previous post”

2
General
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing? **This...
Chris Oliver replied
Solved

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

4
General
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Edit & Update Blog Post Actions Discussion

1
General
Question: when i removed "blog_posts" from my routes, turning our routes get "/blog_posts/new", to: "blog_posts#new", as: :new_blog_post get "/blog_posts/:id/edit", to: "blog_posts#edit", as: :...
Semih Masat replied

Adding a New Blog Post Action Discussion

9
General
Hi Chris, i have noticed that the show action has an instance variable called @blog_post. Which is the current blog post being viewed. Why are we overwriting that variable in the new action?
Juan Francisco Gallardo Gonzalez replied

How to mark a post as read, so that it won't show up again for a user?

6
Rails
I was looking at the unread gem but it seems a bit complicated and many seem to run into difficulty with it. Instead, I was thinking of adding an 'already_read' column (boolean) to the post mode...
Monroe Mann replied

Show each users each post.

1
Rails
I'm trying to create a page where all my users are listed, and every movie they've added to their account. My UserController index def def index @users = User.all if logged_in? ...
Chris Oliver replied