Quantcast
Channel: User jalagrange - Stack Overflow
Browsing all 41 articles
Browse latest View live

Comment by jalagrange on Rails 3.1 attr_accessible verification receives an...

Hello @axelarge, I just tried this and it doesnt work :-(. Im doing exactly as stated in my question: passing ":as => user_roles" which conatains an array of symbols: user_roles = [:admin,...

View Article



Comment by jalagrange on Ruby on Rails: Cucumber: how do I turn off the...

@TheLindyHop Im having a similar problem as you. I attempt to turn off fixtrues using 'Cucumber::Rails::World.use_transactional_fixtures = false' in order to run Selenium integration tests and it does...

View Article

Comment by jalagrange on Rails 3.1 attr_accessible verification receives an...

Yes, completely true. A user is first assigned a role. Personally I use "Declarative Authorization". Therefore all of my users have a certain role associated to them. This is because Declarative...

View Article

Comment by jalagrange on Ruby, RVM, LLVM and MySQL

Thnxs! I had to follow your "very informative blog post" and manually compile gcc

View Article

Comment by jalagrange on Using oink gem with heroku

This is true, however even if you export your logs, I havent found a way for them to be in valid "hodel 3000 compliant logger" format. Which is a requirement for Oink to work. Any ideas?

View Article


Comment by jalagrange on Using oink gem with heroku

Did you figure this out? also stuck..

View Article

Comment by jalagrange on error while deploying rails app to ec2 using rubber...

Downgrading didn't help, any other ideas?

View Article

Comment by jalagrange on Requests got stuck in ActiveRecord::QueryCache...

Any update on this? According to the feed there is "another question" but I cant find it..

View Article


Comment by jalagrange on Slow action in Rails application:...

Any updates on this? Am having exactly the same problem. I'm running on rails 4.0.13.

View Article


Comment by jalagrange on Im running asset_path ('') within prawn and getting...

That is just my config when running on development and everything goes smoothly. On production I just use: "asset_path ('font.ttf')". Thats why my production resolved URl does not contain "app"

View Article

Comment by jalagrange on How do I add input controls dynamically using Meteor?

Thanks a lot! I solved it using these principles.. however I feel there should be another way.. I had to use selectors such as .children for my solution: score_name:...

View Article

Comment by jalagrange on Materialize datepicker SelectOnClose not working

The problem with this solution is that it executes and closes as soon as I click anywhere on the date picker, not just when i choose a date but when i change month or year as well.

View Article

Comment by jalagrange on Materialize datepicker SelectOnClose not working

The problem with this solution is that it executes and closes as soon as I click anywhere on the date picker, not just when i choose a date but when i change month or year as well

View Article


Ruby passing different attribute arguments to same function

I have a job model which has many attributes. I would like to use graphics to display the sum of some of these attributes. For that, I am using the following code in the javascript portion of the view...

View Article

Inserting time into a time column with Ruby on Rails

I have run with a problem which i believe is Active Records fault. I am parsing an XML file which contains jobs. This xml file contains nodes which indicate walltime in the time format 00:00:00. I also...

View Article


Answer by jalagrange for libxml-ruby failed to load at x86_64

I had this exact same issue in a Centos....Aparently there is a problem with gem version 1.1.4 and 64 bit machines. Head over to rubyfourge and dowload version 1.1.3....

View Article

Answer by jalagrange for Accesing hash keys and attributes from the view

Here is the view:<% for d in @data %> { pointInterval: <%= 1.day * 1000 %>, name:<%= "'#{d[:name]}'"%>, pointStart: <%= 2.weeks.ago.at_midnight.to_i * 1000 %>, data: [<% for...

View Article


Accesing hash keys and attributes from the view

in an attempt to create a model with an array as an atribute, i ended up creating an array of hashes like so: data1 = {} data1[:name] = "Virtual Memory" data1[:data] = @jobs.total_virtual_memory data2...

View Article

Answer by jalagrange for Rails problem display attribute key along with...

I have just figured it out. The problem was in the constructor or initialize method. By changing the initialize method to:def initialize( options = {} ) @title = options[:title] @series = []endIt now...

View Article

Rails problem display attribute key along with attributes value

I have the following problem. I have a form which takes input for a "Chart" object. But after processing the form, i wish to display one of the values, and it adds the key of this value.Class...

View Article
Browsing all 41 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>