Displaying 20 results from an estimated 12000 matches similar to: "Add .html extension by default"
2009 Mar 06
9
Association broken when upgrading from rails 1.2.6 to 2.2.2
I have an app with the following models:
course
belongs_to :semester
semester
has_many: courses
belongs_to :education
education
has_many :semesters
In my old app (rails 1.2.6) I was able to access variables via
controller
@courses = Course.find(:all)
view file:
<% for course in @courses %>
<%= course.name %> <- this line works
<%= course.semester.name %> <- this is now
2008 Apr 14
9
scientific notation problem
We''re developing a system that''s used for tracking company IPO data
and we''re running into a few number storage issues. For large numbers,
i.e. numbers greater than 100 million, MySQL insists on storing these
as scientific notation. I don''t really have a problem with that but
when we want to edit these fields using something like:
<% form_for(@company) do
2009 Feb 19
6
Rating
how to implement rating feature in rails and wat are the required gems
for that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2009 Nov 17
5
has_many :through and foo.bars.include?
hallo everybody,
i already googled the following problem, but there are so many
questions regarding "has_many :through", that i just couldn''t find
what i was looking for. so, i''m really sorry if this has been asked
before. if so, just drop me the link.
i have a has_many :through relationship similar to the following
example:
class Group < ActiveRecord::Base
2006 Apr 07
3
Strange errors in generated html
Hi!
This:
<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag ''doitwithstyle'' %>
generates this:
<script src="/javascripts/prototype.js?1144418901"
type="text/javascript"></script>
<script src="/javascripts/effects.js?1144418901"
type="text/javascript"></script>
<script
2006 Nov 04
1
acts_as_tree repeats
Hello Railslist,
I want to draw a simple single-table Acts_as_tree model.
I''ve read some articles about it and read the API docs, and now I''ve
got this running:
in controller I have:
---
def index
@pages = Page.find(:all)
end
---
in the model for Page I have ofcourse:
---
acts_as_tree :order => "position"
---
in the helper I have;
---
def
2006 Mar 14
3
Returning Javascript
I have a page with some links on it that when clicked, loads a "subpage" in
a div. This subpage contains some html and javascript. I see how using
ajax.updater with evalscripts will run any standalone javascript on the
subpage, but I do not have access to any of the javascript functions on that
subpage. Is there some way I can make those javascript functions available
to the page?
2008 Jul 10
1
package has a loading problem
Hello,
I have difficulties in finding why I cannot load a custom R package in
Linux (Suse 10). When I run R CMD check for a package source folder I
get the following message:
".....
Error in dyn.load(file, ...) :
unable to load shared library
'/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so':
/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so:
undefined
2017 Jul 18
2
lme4 question
Hello,
I am trying to run the following model:
domi ~ type*ratio+((1|id)+(0+type|id)+(1|face_id)+(1|car_id))
My question is whether the data coding for "face_id" and "car_id" variables
is correct.
As you see on the following sample data structure, "type" is repeated
measure where 1=car, 0=face. Thus, I coded "face_id" as "0" when the type
is 1
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action,
for example an .rhtml and a .rjs file to handle the view for the same
action?
I suspect not, but this makes me wonder if there a way to call the .rjs
file from within the .rhtml so the statements within it get executed?
Thanks,
Andy
2014 Dec 09
2
raw text Access for http://wiki.centos.org/AdditionalResources/Repositories, Please.
I would like to be given sufficient access to
http://wiki.centos.org/AdditionalResources/Repositories that I may copy the
raw text to a SubPage of my HomePage.
I propose to edit the links on that SubPage and submit it for review by
anyone who may have sufficient knowledge to validate my changes.
I have yet to work with the RPM Package Manager, so I will be making edits
that need to be reviewed
2006 Apr 08
5
What is the h for?
In the "Agile Web Development with Rails" book it runs through making an
example application, a shopping cart.
In one of the views files, there is one line of code I dont understand
(below), I dont know what the "h" is for, also I took the h out, and it
did not affect the application (as far as i could see).
<%= h(product.title) %>
Can anyone shed some light on this
2010 Feb 26
2
Fwd: how to install rmagick on fedora please help urgent
hi all
i want to run project at local system ..see this i m getting some error
http://pastie.org/843746 and when i run server http://pastie.org/843748 plz
tell me how to install rmagick on fedora
Regards,
Shyam
+91-9716-18-9650
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Mar 21
6
Converting Rails app to desktop with XUL?
Hi,
We are thinking about choosing Rails as our weapon of choice for our
next project, which is basically a text editor on steroids, whith some
functionality that need an Internet connection.
In the first step we are going to develop it as a plain web app
(AJAX-ified, yay!), however, in the next step we would like to port some
of the functionality (such as the editor) to a desktop app (which can
2006 May 05
2
how to get image properties
Hi friends
in PHP there is a direct function GetImageSize(), with it I can easily
determine the dimentions of an image file.
How can I do in RoR.
Please help me out
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2012 Jul 29
2
Error in for-loop
Hello erverybody,
I have a problem with my second for-loop.
1. First i read the tables.
datos.mx1 <- read.table('PETmx1.csv',head=TRUE,sep=';')
datos.min <- read.table('PETmin.csv',head=TRUE,sep=';')
http://r.789695.n4.nabble.com/file/n4638257/PETmx1.csv PETmx1.csv
http://r.789695.n4.nabble.com/file/n4638257/PETmin.csv PETmin.csv
names(datos.mx1)
2011 Nov 10
5
Grant a partial page
Hello,
I to issue a grant on a page, but only partially.
I have a pointer to somewhere in memory and need to issue the grant
for such a pointer but not to the entire page.
I know FLAG GTF_sub_page is used for that purpose but grant_entry_v1
apparently has no fields for sub_page, should I change the code to use
Version 2 grant table entries?
Thanks,
Daniel
--
+-=====---------------------------+
2006 Dec 30
2
megatec over USB - using Andrey Lelikov's approach
Hi All,
finally, I've got time and resources for development. Unfortunately I
couldn't
afford playing with my UPS because it was used permanently, but now it's
ok.
I've checked out cureent trunc and I see that Andrey Lelikov's changes
haven't
been applied yet. What's wrong with them?
I think, he made a great job to simplify future support for this kind of
2013 Jan 31
7
[PATCH] libxl: pass debug flag down to libxl_domain_suspend
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1359648298 -3600
# Node ID 256d59b2bc8a413876559dc8daf4c52ba46677de
# Parent 12455da211d4e841692b2374086356a87eb74ff7
libxl: pass debug flag down to libxl_domain_suspend
libxl_domain_suspend is already prepared to handle LIBXL_SUSPEND_DEBUG,
and xl migrate handles the -d switch as well. Pass this flag down to
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up
with nothing on IEPC.
It does very well on every other type of browser but does not work with
IEPC.
I made a folder - "flash" in my public directory and have had the one
instance of it point there.
Thus my flash directory is www.rails-app.com/flash/flash.swf
Is there anything that anyone knows to help out?