Questions tagged [renderpartial]

The concept of rendering only a specific part of any UI. May also refer to the .NET `RenderPartialExtensions.RenderPartial` method or the Ruby on Rails `PartialRenderer`

The concept of rendering only a specific part of any UI. May also refer to the .NET RenderPartialExtensions.RenderPartial method or the Ruby on Rails PartialRenderer

391 questions
0
votes
2 answers

yii insert subform/subpage inside gridview value

I'm a newbie to yii and have difficulty on using subform and gridview. I want to create a simple accounting journal with these…
Henry Gunawan
  • 922
  • 3
  • 18
  • 38
0
votes
1 answer

Rendering Partial with specific :category_id

I created a Categories Scaffold. User's can Upload an image and add a category to it. The Categories i created in the Scaffold are shown in a dropdown for users to Select. On the Image Show Page i link to the category -> <%= link_to…
Mini John
  • 7,855
  • 9
  • 59
  • 108
0
votes
1 answer

how yii generates DOM with renderPartial

I'm facing something strange behaviour of Yii concerning DOM: I've got the following code
renderPartial("/categories/_small"); echo "some test text"; ?>
This is a footer …
Andrew
  • 2,148
  • 5
  • 23
  • 34
0
votes
1 answer

rails sending code block to partial

Rails 3.2.13 & ERB I am trying to get send some link_to items to a partial. I am sending in a title to the partial successfully as below. <%= render :partial =>'form', :locals => {:page_title => t(:'

Editing Feature

')} What I…
0
votes
1 answer

NoMethodError rails

I am building a side project rails app. One feature I am trying to implement is a text_field where a user submits a youtube link, and that creates an embedded video to be displayed on their own page. I am running into the NoMethodError when i go to…
Ox Smith
  • 509
  • 1
  • 7
  • 20
0
votes
1 answer

Meteors template - how to change the data scope?

There is something I do not get with Meteor's template engine, being used with Mustache I can change the scope of the json data souce simply by enclosing the code with a {{#newscope}}{{/newscope}. In practice this does not seems to work the same way…
Flavien Volken
  • 19,196
  • 12
  • 100
  • 133
0
votes
1 answer

Render partial containing javascript from a js.erb file

I have a .js.erb file that renders a partial like so: $("#tasks").append("<%= escape_javascript(render :partial => "task_from_app") %>"); I now need to put some javascript inside task_from_app, but the javascript doesn't work. Removing…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
0
votes
2 answers

Rails: Loading in array of partials

In my Rails app I already have the following code: <% %w(number_of_students edit_class_name tech_help).each do |modal| %> <%= render "common/modals/#{modal}" %> <% end %> There will be a few more modals added into app/views/common/modals and…
dennismonsewicz
  • 25,132
  • 33
  • 116
  • 189
0
votes
2 answers

Ruby on Rails javascript action response (js.erb) is rendering new partial, but not performing ui effects

Context: I have two models, model1 and model2. Model1 has_many model2's. In the model1's manage page, I render a list of _model2.html.erb files, one for each model2 associated with model1. In order for the user to create a new model2 from the…
Jake Smith
  • 2,332
  • 1
  • 30
  • 68
0
votes
1 answer

Conditionally render partials in application layout

In a Rails 3 application layout i include a partial for flash messages. While this is ok in most cases, there is a view where I would need flash messages appear in another place; is there a way in layouts/application.html.erb to say something like…
kranz
  • 599
  • 1
  • 6
  • 23
0
votes
1 answer

Passing local variable into partial returns NameError

I am trying to pass the index of something into a partial and am getting a NameError. Right now, this is my render statement and I am able to access builder just fine. <%= render 'my_partial', :builder => form_helper %> But when adding index like…
JuliaC
  • 121
  • 1
  • 2
  • 11
0
votes
1 answer

How do I update a list of partials rendered with a collection after a form submission of a newly created object in ruby on rails

This is a portion of my groups view. I have a list of partials that I render with a collection of objects:
  • <%= render :partial => 'groups/partial-list-row',…
Jake Smith
  • 2,332
  • 1
  • 30
  • 68
0
votes
1 answer

Refresh HTML Content Provided by Embedded Ruby Without Reloading the Page

I have had some trouble finding a solution to this. Basically, I have an embedded ruby each loop whose body is a partial being rendered for a certain sub group of a model. For instance:
  • <% items.each do |i| %> <%= render…
  • Jake Smith
    • 2,332
    • 1
    • 30
    • 68
    0
    votes
    1 answer

    How do I use another controllers action in the view of a different model in Ruby on Rails using jQuery/AJAX?

    I created a page for my first model type, group, that I would like to have a button on that when pressed, brings up an already existing form (html and embedded ruby) in my project (but in a different views category) for populating a new model that…
    Jake Smith
    • 2,332
    • 1
    • 30
    • 68
    0
    votes
    1 answer

    render a view from another controller

    I'm trying to render one view (index) from one controller to the view of another controller. index needs to calculate some values in the controller and render the view. How do I do this? example: in products/list I have <%= render…
    user1404536
    • 1,101
    • 3
    • 10
    • 17