Questions tagged [high-voltage]

"High Voltage" is a gem used for serving static pages in Ruby on Rails applications.

"High Voltage" is a gem used for serving static pages in Ruby on Rails applications. More information here: https://github.com/thoughtbot/high_voltage

34 questions
1
vote
1 answer

Custom error pages with ThoughtBot High Voltage

I'm using 1.2.2 of High Voltage, on a rails 3.2.2 app, and can't seem to get my app to fire a custom 404 when a page is not found - I just get the "Routing Error, No such page: " error page. Routes.rb: ... match '/signup', to: 'users#new' root…
Les
  • 1,405
  • 15
  • 27
1
vote
1 answer

Using high voltage with nested directories

I have a rails 3.2 application in which I am using the gem High Voltage for my public pages. It seems to work fine, however, I would like to be able to put some subdirectories in my pages folder. For…
Dennis Hackethal
  • 13,662
  • 12
  • 66
  • 115
0
votes
0 answers

Why DRDY do not go low to indicate that the conversion is readyt in ADS1258?

MCU: MSP430F5438A ADC: ADS1258 COM: SPI I want to measure a voltage on a channel coming from the ADC (ADS1258), I am in fixed_Mode channel and in AIN2 positive AIN3 negatif, enabling status byte and i could configure all the registers of the ADC as…
0
votes
1 answer

How create a clickable icon link with high_voltage

I use the high_voltage gem for creating links to static pages in my rails application. How can I use a picture / icon as a link? I just need some syntax example. Thanks, Karsten
0
votes
1 answer

Rails - HighVoltage - link anchor with title

I am using the High_Voltage gem to integrate static pages in my rails gem. I figured out how to link to anchors within a page (thanks to this previous answer. Now I also want to add a pop-up title to the links. I just randomly tried link_to "About",…
0
votes
1 answer

high_voltage double URL routing error

I'm getting the following error when I routing in my app Routing Error No such page: pages/contact The page does exist, I've noticed in the URL it says: http://localhost:3000/pages/pages/contact So rendering double…
user3349825
  • 67
  • 1
  • 11
0
votes
1 answer

Rails generates unwanted whitespace between partials

I'm developing a Rails application using bootstrap-sass and high_voltage. I have a navbar partial in views/application/_navbar.html.erb which I'm rendering in the application.html.erb layout view. This, however, causes a  to appear between…
Niek
  • 1,464
  • 1
  • 17
  • 27
0
votes
3 answers

how to read continuous voltage of 12v Lead acid Battery by arduino?

Thank you in advance. I am beginner in Lead acid batteries. Actually I Am using solar energy to charge my 12v sealed lead acid battery. and the thing is I need continuous monitoring of my battery voltage. I used a voltage divider to do that. Now my…
Dileep
  • 65
  • 1
  • 1
  • 8
0
votes
0 answers

rails skip_filter not working

I'm trying to use Devise and HighVoltage on a very simple test project. On development runnign rails server HighVoltage works fine, but, on a remote server runing in production using passenger going to the same url redirects to the login…
Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
0
votes
1 answer

Rails - HighVoltage gem - link with anchor

I have a problem with HighVoltage when I try to link to anchor on the static page. In the URL I am receiving '%23' instead of '#'. Example <%= link_to 'xxx', page_path('xxx#yyy') %> gives in the URL: http://localhost:3000/pages/xxx%23yyy Can…
Michal
  • 139
  • 3
  • 14
0
votes
1 answer

Routing issues with High Voltage and locale

My routes.rb Rails.application.routes.draw do scope "(:locale)", locale: /fr-FR|de-DE|es-ES|zh-CN/ do get ":id" => "high_voltage/pages#show", as: :page, format: false ... Which works fine for things on the top level like /pricing however…
Lindsey B
  • 556
  • 3
  • 15
0
votes
1 answer

Getting most recent paths visited across sessions in Rails app

I have a simple rails app with no database and no controllers. It uses High Voltage for routing queries, then uses javascript to go get data using the params hash. A typical URL looks like this: http://example.com/?id=37ed660aa222e61ebbbc02db I'd…
Quincy Larson
  • 621
  • 1
  • 6
  • 16
0
votes
1 answer

High Voltage Gem

I'm having a problem setting up High Voltage gem for my static pages. I have a view/pages folder with 'privacy' and 'terms' files in it. In my _footer.html.erb, I have: <% link_to "Privacy", page_path('privacy')%> I have nothing in my routes…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

disable any layout for static pages with high_voltage

I am using high_voltage gem on a Rails 4 project. I have built two static pages so far. Following this tutorial here, I added an 'override' behavior for disabling the layout and disabling the user authentication. But still it is using the default…
Som Poddar
  • 1,428
  • 1
  • 15
  • 22
0
votes
1 answer

Can't configure the HighVoltage gem

I'm using High Voltage for static pages in a Rails 4 app. I'd like to specify a static home page as outlined here but I get the following error on server bootup: undefined method `configure' for HighVoltage:Module (NoMethodError) I have a…
Gerard
  • 4,818
  • 5
  • 51
  • 80