First time I saw a class Kase, I was scratching my head.
My guess it's something to do with a conflict of the keyboard case. BTW, since when, for which language(S), it becomes a norm?
Hi Everyone,
I have created a pdf version of our rails application using the Prawn plugin, the page in question is part of the Kase model - the link to the kase is /kases/1 and the link to the pdf version is /kases/1.pdf.
How can I add a link within the show.html.erb to the PDF file so whichever page is being viewed it updates the URL to the…
First time I saw a class Kase, I was scratching my head.
My guess it's something to do with a conflict of the keyboard case. BTW, since when, for which language(S), it becomes a norm?
Hi Everyone,
In my rails application I have two models called Kases and Notes. They work in the same way comments do with blog posts, I.e. each Kase entry can have multiple notes attached to it.
I have got everything working, but for some reason I cannot get the destroy link to work for the Notes. I think I am overlooking something that is…
Hi Everyone,
I need to be able to call data from a different model - not just one field, but any of them.
At the moment I have the following models:
kase
person
company
party
I can call information from the company to the kase and from the person to the kase using this:
<li>Client Company Address: <span…
Hi Everyone,
I am trying to get some information posted using our accountancy package (FreeAgentCentral) using their API via a GEM.
http://github.com/aaronrussell/freeagent_api/
I have the following code to get it working (supposedly):
Kase Controller
def create
@kase = Kase.new(params[:kase])
@company…
Hi Everyone,
I have two PDFs that are made "on the fly" using Prawn PDF.
The PDFs are called jobsheet.pdf and discharge.pdf - their URL's are:
railsroot/kases/IDNO/jobsheet.pdf
railsroot/kases/IDNO/discharge.pdf
I am trying to work out how to automagically append the filename with the ID number:
…
Hi Everyone,
I am following the 15 minute blog tutorial on Ruby on Rails .com: http://media.rubyonrails.org/video/rails_blog_2.mov and am stumbling into some issues.
I am using the following alterations to the names in the tutorial:
posts = kases
comments = notes
I have setup the models as…
Hi Everyone?
I am trying to add a select box to the base of my create form that decides if an action runs from the controller...if that makes any sense?
Basically the application creates a project in FreeagentCentral whenever a new project is made:
def create
@company =…
Hi Everyone,
I have managed to get my email problem sorted so now everytime a case is created an email goes out to the specified address.
I have a usermailer.rb
def makeakase(email, name, jobno, casesubject)
recipients email
from "no-reply@your_rails_app.com"
…
Hi Everyone,
I have a working Rails application on version 2.3.5 - I am using many to many model relations and have got almost everything working.
What I would like to do is on my new kase page show the most recent kase job ref at the top.
So for example, if I created a…
Hi Everyone,
I have my application setup with a few different partials working well. I have asked here how to get a partial working to show the latest entry in the kase model, but now I need to show the latest 5 entries in the kase model in a partial.
I have duplicated…
In my previous blog I described the steps to get OpenStack on Solaris up and running. Now we'll explore how WebLogic and OpenStack can work together to deliver truly elastic Middleware Platform as a Service.
Middleware / Platform as a Service goals
First, let's…
Hi Everyone,
I have successfully created an email that sends on creation of a Kase, but now I need to attach a PDF that is created on the fly by Prawn and Prawno. Basically when you visit a kase such as application.com/kase/1 you just append the URL with .pdf i.e.…
Hi Everyone,
I have installed the Paperclip plugin to attempt to upload an avatar for my kase model. For some reason, the select the file button shows, and I can choose a file - but then when I click update the kase - it takes me to the show page, but the…
Hi Everyone,
I have created a custom action within one of my controlers as follows:
# GET /kases/discharge/1
# GET /kases/discharge/1.xml
def discharge
@kase = Kase.find_by_jobno(params[:id])
respond_to do |format|
format.html { } #…
Hi Everyone,
I have three models that I want to interact with each other.
Kase, Person and and Company.
I have (I think) setup the relationships correctly:
class Kase < ActiveRecord::Base
#HAS ONE COMPANY
has_one :company
#HAS MANY PERSONS
has_many…
Hi Everyone,
I have a model called Kase each "Case" is assigned to a contact person via the following code:
class Kase < ActiveRecord::Base
validates_presence_of :jobno
has_many :notes, :order => "created_at DESC"
belongs_to :company #…
I am developing a mobile game for Android. It is a 3D jumping game (like ski jump) where wind plays a important role so i need to simulate it. How could I achieve this?
The game uses libgdx for rendering and a port of Bullet physics engine for…
im developing a game which has different levels and i need to store all levels and its elements (position, image, sounds,..) into a file/database. The levels will be updated so i need a function that checks online for a update and downloads a…
Hi Everyone,
I have a kase model which I am using a simple search form in. The problem I am having is some kases are linked to companies through a company model, and people through a people model.
At the moment my search (in Kase model)…
Hi Everyone,
I am using a Gem to communicate with FreeagentCentral via their API. I have the following code to display a link to the relevant freeagent project:
<%= link_to "#{image_tag('/images/icons/Spinning Beach Ball.png')}…
Hi Everyone,
I have a simple form to enter details of a new case (kase), it's working well and clicking submit stores the information and takes the user to the show.html.erb page. However, I wanted to move part of the form to the…
On a Ubuntu server that I am using for computations I have recently observed that some CPU extensive programs (GUROBI,CPLEX) often segfault.
Being in correspondence with tech support of the respective programs I was suggested that…
Due to an unpredicted scenario I am currently in need of finding a solution to the fact that an application (which I do not wish to kill) is slowly hogging the entire disk space. To give more context
I have an application in…