Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8083993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:39:29+00:00 2026-06-05T17:39:29+00:00

User Story: Action for Facebook that has open graph object. For this I need

  • 0

User Story:

  • Action for Facebook that has open graph object.
  • For this I need to modify the tag defined in application.html

Problem:

  • The logic would need to be defined in helpers or the application_controller
  • From my understanding this is not clean.

Question:

  • I want to pass variables directly into the application.html view.
  • Preferably pass those variables from a custom controller into the application.html. This way I can still utilize the rails routing system to only pass those variables when I am on the facebook action.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:39:30+00:00Added an answer on June 5, 2026 at 5:39 pm

    The common mechanism for passing variables in to the view is to create instance variables in your controller as these are ported over automatically.

    This is the standard approach if it is almost certain they will be used. For things that may not be used, create a helper method that will take care of providing them.

    This is the difference between doing this:

    def show
      @facebook_graph = ...
    end
    

    And this in a helper:

    def facebook_graph
      ...
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an application that has a Keynote model and a Story model (as
I'm building an application that has a Keynote model and a Story model (as
I'm building an application that supposed to store some images from user's Facebook accounts
I'm taking a first shot at the Facebook Open Graph API. I've made a
I'm making a simple Facebook app that posts updates to the user's timeline using
I have set up Actions for my facebook open graph app and can successfully
I just created an app on Facebook (Open Graph). I want to publish a
I have an iphone app that lets users post a 'story' to their facebook
Here's the story: I've created an application that starts at boot time and perform
I have a story model that has many posts. I list the stories in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.