Displaying 20 results from an estimated 500 matches similar to: "forms & link css classes - not working"
2006 May 11
4
modelling data to specify user access
Hello, this is my second Rails app, and the first one I did had simple
data mapping. This time I am building a site for a photographer, and
they want to upload photos, and create galleries that only certain
clients can log in and have access to. There will be multiple
galleries, and the access to them will vary depending on how the admin
assigns it to each client. There is also a porftolio
2006 Aug 18
3
setting a value of text_field from a controller
Hi,
I need to set up an initial value from controller. In my views I''ve
something like
<%= text_field "object", "name" %>
and would like to do something like this from controller
def index
@object[:name] = ''default value''
end
but still got an error. Object doesn''t have database model (and will not
have)
Thank you
PS: now using
2011 May 20
3
Div style changes
Rails is not changing my divs styles.
I made a new layout and set a div''s style to style="width:2000" but it
does not change the width. Any ideas?
--
Posted via http://www.ruby-forum.com/.
--
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
2012 Jan 22
4
undefined method `gsub!' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span
Hey all,
I am getting this error:
NoMethodError (undefined method `gsub!'' for 2012-01-22 17:00:00
-0500..2012-01-23 00:00:00 -0500:Chronic::Span):
in this code:
date_range = Chronic.parse(the_date, :guess =>
false)
reports.sum_distance_by_date(date_range).each do |d|
u[:m] << d
end
def
2011 Jun 21
2
Find by parameter
Hi,
I''m trying to do a query on controller for get list by a boolean value
I do
@movies = Movie.where(:active => 1)
This value is already on form and it is being written on database, but when
I write a block, I still picked up the list of all videos
Can anyone see what I''m doing wrong?
Thanks!
--
*Fernando Aureliano*
--
You received this message because you are
2011 Sep 21
5
bundle install rmagick error in unix
I have Rails 3 and Ruby 1.9.2
Installing rmagick (2.13.1) with native extensions
/opt/local/lib/ruby/site_ruby/1.9/rubygems/installer.rb:551:in `rescue
in block in build_extensions'': ERROR: Failed to build gem native
extension. (Gem::Installer::ExtensionBuildError)
/opt/local/bin/ruby19 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for
2012 Sep 14
5
ruby server chrashes
Hello,
When I do rails server it chrashed with this ouput :
http://pastebin.com/DJ21qC5h
Anyone a idea what is the cause of this problem and how to solve this ?
Roelof
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
2013 Jul 07
3
Convert Hex Color Value To HTML Color
Hey everyone. I''m new to ROR, and I followed and implemented the
beginner Ruby On Rails Tutorial (2nd Edition) code, and its working
great. For those who are unfamiliar, this creates a site that acts much
like Twitter.
If someone enter the hex value for a color (say #ff0000 for red), I
would like for ROR to convert that to an HTML color box representation
in
the post that is created. Any
2009 May 07
13
what database field type should i use ??
in a database table if there is a field which has a certain set of
fixed values. for example
staus => {Single, Married, Divorced }
OR
state => {California, Albama, Olaska ...}
so what should be preferred way out of the following for storing the
values
1. Keep the field as "string(Rails)" VARCHAR(MySQL) itself ....and
while showing the field just show the field value.
2. Keep
2011 May 16
1
You cannot have more than one Rails::Application (RuntimeError)
I installed RVM and am getting a kinds of errors. I have managed to get
most things back to normal but I get this error now in one of my apps.
/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:63:in
`inherited'': You cannot have more than one Rails::Application
(RuntimeError)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
2005 Aug 05
1
Problem running Astrerisk after defined card in /etc/asterisk/zapatal.conf
I have configured /etc/asterisk/zapata.conf, but now Asterisk refuses to start:
Aug 5 10:47:29 ERROR[1076842624]: chan_zap.c:5976 mkintf: Unable to get parameters
Aug 5 10:47:29 ERROR[1076842624]: chan_zap.c:9478 setup_zap: Unable to register channel '1-15'
Aug 5 10:47:29 WARNING[1076842624]: loader.c:328 ast_load_resource: chan_zap.so: load_module failed, returning -1
== Unregistered
2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =''_parent'').
Any ideas?
(Everything I''ve tried- via redirect_to - just keeps it inside the
iframe)
2007 Oct 02
1
splom pairs and groups argument
Hello,
I'm trying to pull off a certain graph using splom, and can't quite get my panel functions right.
Basically, the equivalent using pairs would be something like this (using iris data set as an example):
panel.corval <- function(x, y, digits=2, prefix="", cex.cor,col,pch)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
2008 Jul 02
1
graph woes
Hey Gang,
Here is the situation. First of all I am a newbie, in the arena of R,
so please bare with me. I am trying to make a plot with a series of
plot lines that uses logs on the x axis, and when I plot it I am
having a few odd things go on that I do not know how to correct.
1. the tick marks are not where I want them to be. I want them at
.1, 1, 10, and 100, but I'm get them at 0.1,
2006 Sep 22
1
two questions associated with heatmap
hi, there:
i have 2 questions associated with heatmap
in heatmap.2{gplot}, there is a bar called "raw z-score" showing the
coloring legend for each pixel. Where can I find that z-score's
formulae?
question 2,
for example, I have 5 groups and I want to label each group with a
color name from "#FF0000" to "#0000FF" evenly. so basically i need a
vector like this:
2011 Aug 03
2
Malformed CSV Error
Hello,
I am getting error :-
#<CSV::MalformedCSVError: Unclosed quoted field on line 1892.>.
I have following code :-
--------------------------------------------------
@parsed_file =
CSV.open("#{RAILS_ROOT}/private/sales_report_files/#{@file_folder}/#{@sub_file_folder}/#{@file_name.filename}",''r'',:col_sep
=>?\t)
@parsed_file.each_with_index do |row, index|
2017 Feb 01
2
Buttons too big in Firefox for Linux
On Wednesday 01 February 2017 14:34:48 Alice Wonder wrote:
>
> Use CSS to set the button size.
>
What I'm looking for is how do I fix the web browser, not how do I fix my web
pages. To go down the CSS route means that I'll have to amend every CSS /
HTML to fix the problem. It then doesn't fix the problems I have if I visit
other people's web pages, although to be fare
2011 Aug 26
17
strings issue
Hi everybody,
I ve got a problem with strings and the class File in rails
Indeed, when i try to do this:
File.new("archives/sequences/archives-2011.xml")
it works perfectly, however when i do
string = "archives/sequences/" + @filename => filename being
"archives-2011.xml"
File.new(string)
it doesn''t work!
ruby tells me it cannot find the file
does
2008 Oct 03
5
color code from csv
hi folks,
this is driving me up the wall. Apologies for posting twice in the same
week, I'm writing up a thesis. I wish to color-code some dots in an xy
plot. I've got a csv file with various elements, one of which is the
color-key (with the header 'color'). If the color-key is decimal (eg.
1,2,3) then I can use
plot (X ~ Y, col=data$color)
The problem, however, is that using
2013 Oct 25
1
add a color band
Hi all,
I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color.
For now I have only this code
test<-matrix(data=runif(10000),nrow=100)
plot(test,axes="FALSE")
axis(1,at=c(0,1),labels=c("a","b")) #
but I would like to add