Images appear on one page, but not on another page that uses almost the exact same code - ruby-on-rails-3

I have searched everywhere for help on this, but the only answers I come up with are to the question of why an image won't show up at all. Here is my problem:
In my Rails CRM app, I created a scaffold for "Contacts." I purchased a template on ThemeForest that uses Bootstrap, and have copied all the CSS and javascript files into my Vendor directory. The template comes with a number of HTML files. I selected one and used it as my main Contacts List. I used the "datatables.net" gem to display the contact list. This particular HTML file contains a number of images, mainly used for buttons. All the images display correctly on this page.
On my Edit Contacts page, I copied and pasted all of the HTML from the Contact List page, and inserted a Form For partial in place of the contact list table to display editable fields for a particular contact. At first, all of the images on this page did not work. I did some reading about the asset pipeline, and discovered that the image source should be "asset/image_name.png" instead of "images/image_name.png". (I had copied all my images to the assets/images folder.) I was puzzled why the images on the main contact list page would work, but the Edit page would not. Regardless, I did a find and replace for "/images/" and replaced it with "/assets/". This fixed about 2/3 of the images on the Edit Contacts page. The rest, I am still getting the following error as an example on Rails Server:
Started GET "/contacts/assets/icons/quickstats/user.png" for 127.0.0.1 at 2012-08-15 23:40:42 -0700
ActionController::RoutingError (No route matches [GET] "/contacts/assets/icons/quickstats/user.png"):
This is the same error I got before I did the find/replace.

The problem is you are probably using "assets/blah.png" instead of "/assets/blah.png". This will work for root urls but not for anything deeper, eg. "/contacts/new".
Instead of typing the URL out, use the image_tag helper, which will take care of this stuff for you.

Related

Aurelia tutorial stuck building out contact list

I'm an experienced WPF developer, but new to web development.
I'm stuck at point where you replace the Contact List Placeholder
with the contact-list custom element.
When I run it the web page still shows the placeholder text instead of the contact list. I assumed this was a cache issue, but I've tried everything I can think of to clear the cache. I have also tried deleting the app.html and running the site to see what kind of error I'd get, but still I get the template with Contact List Placeholder. I've tried reverting to the original tag and changing the inner text, and I still get "Contact List Placeholder".

Google Plus doesn't show article image, just shows title and article link

I am trying to share a post from my website(blog) onto Google plus but it isn't showing the featured image of the article, instead it is just showing the title and link of the article. I have microdata and also "og" tags for my page. When tested using Google Structured data testing tool, it is showing all good. I expect to get some help here. If I am trying to share the home page, it is showing an image, however if I am trying to share any post from the website, it is not showing any image. Please help, let me know if you need any more info, would be happy to provide.
One of post's from website
The og:image meta tag is being used by google plus rather than the image property within your http://schema.org/BlogPosting -as #abraham pointed out this is a broken link, it should go to http://top10grocerysecrets.com/Top-10-foods-for-releiving-inflammation.jpg - currently it includes /wp-content/uploads/sites/17/2015/07/ which isn't part of the image's path.
In the structured data it is valid, but not correct: BlogPosting has an image set but without a full path which may be why it gets ignored: the source should begin http:// etc. This is also needed if you want the image to appear in the google search results preview.
The WebPage element does not have an image set: only the BlogPosting does. Consider setting the same image property using a meta tag inside the WebPage element if fixing the BlogPosting image's path does not resolve the structured data issue, e.g.
<meta itemprop="image" content="http://top10grocerysecrets.com/Top-10-foods-for-releiving-inflammation.jpg" nt-post-thumbnail wp-post-image" alt="Print" />
In the structured data there are two unrelated mistake
the BlogPosting has author set to a link with fixed IP address http://162.244.66.231/top10grocerysecrets/author/cyoung this will reduce the chance of it connecting the blog with C Young's profile on the website.
the file name http://top10grocerysecrets.com/Top-10-foods-for-releiving-inflammation.jpg has 'releiving' in it, which is not the spelling used in the text on the image itself. This doesn't matter a great deal.

How to achieve auto contextual linking in the Umbraco CMS?

I want to manage internal contextual link building in my articles, but somewhat in a well-managed and easier way. It is a pain to change all the link URLs in a text if we change a URL of a page which is linked to many pages in their content.
You shouldn't need to change them if you used the content picker to select the page you are linking to because it inserts a URL in the format {localLink:####} where ### is the id of the document the link is pointing to.
This is then parsed and replaced with the correct and current URL when the document is rendered, so it is always current and correct.

How to add a custom image (<xh:img>) to PDF

We would like to add an image to our PDF in Orbeon. We explorered different tags and came up with tag. This worked the way we wanted but this tag keeps the PDF from building. We don't get any (visible) errors but a time-out occurs after couple of seconds.
To cross check: PDF build fine without the xh:img tag.
I was wondering what other options do we have. I thought about a PDF template but we would like to give the form author the option to choose his/hers own jpg from a web resource.
This is on 43PE.
User error yet we didn't change much after all.

Drupal - Simple Edit can't find

Ok, I have been searching for days on how to fix the vimeo urls on this page: https://www.createjobsforusa.org
Basically, I just got an SSL certificate and I'd like to change http://{the vimeo url} vimeo linking videos to https://{the vimeo url} Simple edit is all I need, but I can't find where the videos are located.
Content Blocks? All I get are settings for this. Pages? So, I go to "Content" and I see a huge list of pages in there, I see a page called "Home", so I click on the Edit link and the body of the page is blank? Ok, so this has to be coming from someplace else, but where?
Can someone please help me with how to find the vimeo video URLs and change them to "https://" instead of "http://"
I think the View is called: A-Spots... here are pics of what I get when I click on the Edit A-Spot View:
What exactly am I supposed to do here? Seems like so much to do, but every option I seem to choose still doesn't give me the option to change the vimeo URLs.
A view just select nodes (or other entities) to show them. If you edit a view, you just change the way those nodes are selected or shown; you don't edit the nodes a view selects to show.
If you look at the preview of that view, you will notice it shows some numbers; those numbers are node IDs. Just edit the node from https://www.createjobsforusa.org/node/55291246/edit; replace 55291246 with the other IDs shown, and you will be able to edit all the nodes used from the view.
If that doesn't work, https://www.createjobsforusa.org/admin/content lists all the content in the site. Just look for the nodes whose ID is the one shown in that preview, and edit them.