Questions tagged [partials]

Partials are often synonym for templates, which can even also be called partial templates.

Partials are often synonym for templates, which can even also be called partial templates.

763 questions
-1
votes
1 answer

TYPO3 Form Multicheckbox Partial

I tried to edit the core file form\Resources\Private\Frontend\Partials\Field\Field.html to change the html output in the frontend. If I change that file, it has not effetcs. If I change the core file…
WhoKnows
  • 9
  • 4
-1
votes
1 answer

How to use an environment variable for Google Analytics tracking ID in a Haml partial

I'm trying to add Google Analytics tag to my web application, which runs Ruby on Rails. I'd like to deploy the same code to multiple environments, development, staging, production, and to configure a different Google Analytics tracking ID via an…
alenz
  • 84
  • 8
-1
votes
1 answer

Rails routing - First argument in form cannot contain nil or be empty

I have a rails app with a Listing model which has_many Courses which has_many Course_photos. The rails route for loading new course_photos is "listing_course_photos" or /listings/:listing_id/courses/:id/course_photos(.:format) In trying to load…
Jack Riminton
  • 130
  • 1
  • 8
-1
votes
1 answer

How do I pass a specific string to my partial depending on the value of another variable also being passed to it?

I have the following partial (_card_brand.html.erb), which looks like this:
That renders HTML that looks like this:
marcamillion
  • 32,933
  • 55
  • 189
  • 380
-1
votes
2 answers

JQuery .load() function does not seem to be loading the partial html file I am passing it

I am trying to use the jQuery .load() function to load a partial (in this case the navbar) into a specific div (using the id I've given it as the target). While developing the site I am building I have been using Gulp, and the way I have set it up…
Andy Pohl
  • 243
  • 4
  • 14
-1
votes
1 answer

When javascript loop inserts HAML partials, does server begin rendering partials before loop finishes?

I'm working on displaying JSON from ajax request with Ruby on Rails but would like to know the following as it would help in the way I layout my code. Does server immediately render haml/erb partials inserted via javascript loop via javascript…
Juan
  • 19
  • 3
-1
votes
1 answer

Produce a table with unique headers and cells through a rails partials

I have a standard table layout that I would like to use on my index view for 4 different resources. I have created an index_table partial that uses locals to supply the: Table title Table headers Tables objects (such as @users) Table cells <%=…
Josh
  • 55
  • 1
  • 4
-1
votes
2 answers

@comments nil while @event.comments works in show partial

I cannot figure out why @comments is returning nil when I am attempting to loop through it. If I use @event.comments.each do instead it works just fine. My current structure is User / Events / Comments. Comments Controller: class…
Sean Szurko
  • 244
  • 1
  • 3
  • 16
-1
votes
2 answers

How do I get render to work with nested controllers?

These are my routes: resources :auctions do resources :bids end I have the auctions#show view with a form for bids: = form_for [@auction, @bid] do |form| = form.input :maximum = form.button :submit This of course POST to…
-2
votes
1 answer

getting variables into rails partials

Just a quick question I am a new bee on rails I am wondering how to work with partials in rails like how we interact with components in react and rails just a quick example. Below is the code I have tried. I want to render custom navbar <%…
-2
votes
4 answers

Ruby on Rails Partial Locals

On my site users can both take and retake a quiz, meaning I will use the quiz code in a partial view that will be used both by the the edit and new views. To render my partials I have in my new view: <%= render partial: "quiz", locals: { url:…
Liz
  • 1,369
  • 2
  • 26
  • 61
-3
votes
1 answer

form_for submitting as PostsController#show instead of create when creating comments(nested)

I'm trying to figure out why my form is submitting wrong. I'm trying to implement nested comments under posts and my form renders but submits to the wrong action. I've tried a few things but cannot get it to work. I can create a comment via the…
-4
votes
1 answer

Why is this crashing? How do I fix it?

This is my code (C++). #include #include #include #include using namespace std; void rotaryxorencrypt(int dat[],int len){ ------------------------------ } void encrypt(int dat[],int len){ …
Justin
  • 121
  • 1
  • 4
1 2 3
50
51