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 606507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:15:42+00:00 2026-05-13T17:15:42+00:00

When dealing with any framework with which you are not 100% familiar, I’ve found

  • 0

When dealing with any framework with which you are not 100% familiar, I’ve found it advisable to attempt to understand and clean up any extraneous warnings, if only so that you have a better chance of noticing real errors when they occur.

The one I’ve been getting lately has been:

 DEPRECATION WARNING: @model will not longer be implicitly assigned to model

It appears not to be breaking anything in my current code base, but I’m worried just because I don’t understand the warning completely. I thought it was generally better NOT to use @model in your partials.

Nonetheless this warning has been getting invoked every time this particular ‘model’ appears in its partial.

How should I explicitly assign it? I’ve created the @model in a controller, and am then calling the partial with a collection (understood this to be the ‘railsy’ method.)

Can anyone explain what’s going on here to me, and what best practices are in this situation? I’m not freaking out yet, but the miles of warning tend to drown out the real output from my application.

  • 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-05-13T17:15:42+00:00Added an answer on May 13, 2026 at 5:15 pm

    In 2.3.5, yes, you should fix your code. You used to be able to do this

    @rocket_launcher = RocketLauncher.find(params[:id])
    page.insert_html :bottom, 'ajax_this', :partial => 'rocket_launcher'
    

    and it was fine (@rocket_launcher was picked up in the partial). No longer. Now you must do

    page.insert_html :bottom, 'ajax_this', :partial => 'rocket_launcher', :locals=>{:rocket_launcher=>@rocket_launcher}
    

    That said, your example

    <%=render :partial => "rocket_launcher", :collection => @rocket_launchers %>
    

    is cool and the deprecation warnings seen in 2.2.x should be fixed now (in 2.3.5).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am dealing with a weird behavior of XCode: dyld: Library not loaded: /Library/Frameworks/SBJson.framework/Versions/A/SBJson
Is there any way of dealing with sessions with sockets in C#? Example of
Is there any php libraries or API's that help when dealing with X12 documents
When dealing with a collection of key/value pairs is there any difference between using
Dealing with Java - which the option you prefer in the most cases -
Is there any way (apart form actual perfomance measurements which can be pretty hard
NSError requires a domain, which I understand segments the range of error codes. One
Currently the php framework I'm dealing with has a simple conf file with define
Is it possible to have a Rails mailer without any view ? When dealing
I have found virtually no documentation other than the official one dealing with the

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.