Displaying 20 results from an estimated 3000 matches similar to: "Share partial among different resources"
2013 Apr 24
3
join table naming
Hi,
I’m an amateur learning rails and could use some help…
I created a join table “pictures_questions”
and append to it in the following way:
@picture = Picture.new(params[:picture])
…
if @picture.save
@question.pictures << @picture
Everything works fine but honestly I think I got this working by sheer
luck and trial and error. I have 2 questions:
1. I do not understand the
2014 Oct 19
2
Matrices complejas
Saludos compañeros/as.
Consideren una matriz de n columnas y n filas.
Quiero distribuir aleatoriamente 6 números predefinidos
(11,12,13,21,22,23,31,32,33,41,42,43), con una probabilidad de aparición de
cada número que será igual a la frecuencia de ese número dividida por la
frecuencia total de todos los números.
Soy incapaz de resolver el problema: con la función rbinom sólo puedo
generar dos
2015 Mar 28
2
Comparaciones múltiples
Saludos,
tengo una base de datos con tres variables: especie, tratamiento y
abundancia.
Quiero hacer comparaciones múltiples con Tukey.
Ya había usado el comando TukeyHSD(aov(x~y)).
La cuestión esque ahora tengo varios niveles del factor especie y varios
niveles del factor tratamiento.
Si hago TukeyHSD(aov(abundancia~especie:tratamiento)) me salen todas las
comparaciones posibles, pero yo sólo
2010 Sep 14
7
II jornadas
Estimados usuarios de R en Castellano
Hace meses la Escuela Politécnica de Mieres asumió la organización de las II
Jornadas de Usuarios de R en Castellano.
Como miembro del comité organizador, os envío una primera propuesta del
programa a realizar, en la que las comunicaciones se prevé inicialmente se
dividan en cuatro temáticas:
1. Aplicaciones industriales.
2. Aplicaciones médicas.
3.
2015 Jun 12
2
Serie temporal interrumpida del tipo AirPassengers
Hola usuarios,
Necesito detectar si existe o no un cambio de tendencia y si dicho cambio es significativo, para una serie temporal del tipo AirPassengers, en la que
a partir de un determinado momento se ha hecho una campaña (supongamos que una promoción de vuelos).
Para ello he pensado varios métodos:
Usar la descomposición espectral de la muestra [decompose(AirPassengers)] y luego una Regresión
2011 Aug 29
7
:onchange in rails 3
Hi,
Anybody know why :onchange works here...
<%= select_tag "Minisections",
options_from_collection_for_select(@minisections, :id, :title, :selected
=> @minisection.id), {:onChange => "{alert(''Minisection has been changed
to x !'')}"} %>
but NOT here (to call a function)...
<script type="text/javascript">
function xyz() {
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
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
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index
Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised:
compile error
app/views/upload/uploadfile.rhtml:10: syntax error
Extracted source (around line *#10*):
7: <% end %>
Trace of template inclusion: app/views/upload/uploadfile.rhtml
RAILS_ROOT: /home/malathi/www/upload
Application Trace <http://localhost:3000/upload#> | Framework
2013 Jan 07
9
Devise Admin View password
Hi Everyone
i am using devise for authentication for my app.
Is there any way, Admin user can view other users password as normal string.
Without storing there password as string in database?
Please advise.
--
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
2003 Jan 20
2
Client with tinc
Hi!
They have in my university a Cisco VPN solution. Unfortunatelly, if you
are cuban, irakian, iranian or a couple of other nationalities, you are
not able to use it (sic...).
I would like to study the possibility to install tinc as client. I've
read that "There is no real distinction between a server and a client in
tinc". Would tinc work as a client with the Cisco VPN? Of
2012 Feb 28
8
getting error:undefined method 'current'
hi all,
i am getting an error ''undefined method ''current'' for 852:Fixnum'', the
error coming for following line
<%if @expert_pagination.current.previous%>
<a href="#" class="darkgray1"
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because
2010 Aug 31
6
ajax and partials
Hello all,
I am still very new to programming and wonder if I could get some help.
I have tried to figure this out myself but still having trouble with
some of the concepts. I’ll do my best to explain the problem and
include the code. I may be completely off track, so ANY direction
offered would be deeply appreciated.
I have a question model / object which consists of a question, answers,
and
2013 Jan 25
4
Usage of ram for Sunspot Search engine
Hi all,
I am using Sunspot Search Engine in my app. When I deployed my app in
production It it bit slower side.
My Server Details:
ram 256
Ubuntu 11.10
How can I check why my app is slow in production can any one help me out to
solve this issue.
Cheers,
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Aug 27
6
assert_select for <p><b>text</b>value</p>
I have the following html
<p><b>text</b>value</p>
I can use
assert_select "p>b", "text"
to check the text portion, and
assert_select "p", "value"
to check that the value appears in a <p>. I cannot work out how to
check that the two are in the same <p>. I have used assert_select for
much more complex tasks but my mind
2013 Jan 27
2
Help displaying text
Apologies in advance ...this may be a really dumb question but here
goes.
@formatted_question[:a] contains text with HTML markup. I want to
display it in a field so I can control its vertical and horizontal size
on the page. When it is displayed on the page now, rather than
interpreting the HTML, it is output into the text field as a string with
all HTML tags showing. What am I doing wrong??
2011 Nov 05
13
Adding a site admin user while creating a site
Hi Gurus,
I wanted to add siteadmin user(basically a user with a certain role) while
creating the site itself. I hope that i have done all the necessary stuff
by going through raynb''s railscasts (
http://railscasts.com/episodes/196-nested-model-form-part-1) But could not
see user fields being displayed in the site creation form.. Below are the
details.
I Have two model users and
2013 Nov 13
2
determinacion del tamaño de la muestra
Yo no conozco ningún paquete para hacer esto aunque probablemente exista.
De todas maneras las cuentas de este tipo de calculos no suelen ser
complicadas. Personalmente le recomendaría pasarse por una biblioteca y
adquirir el siguiente libro donde explica con todo lujo de detalles, en
castellano y simpliciddad como hacer estos calculos
2009 Dec 13
20
Need help...NameError in InteractController#add_to_cart
Hi,I am developing a web app and am following the text-Agile web development.....Each time I click my "add to cart" button" i always get the page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed?
NameError in InteractController#add_to_cartundefined local variable or method `find_cart'' for
2008 Jun 03
3
OpenSpace support for mapstraction
Attached is patch to provide support for OpenSpace in mapstraction. A demo
can be seen at http://yvonnesplants.co.uk/openspace_demo.html.
Note that OpenSpace seems sometimes to have a problem with links clicked
from email. If you get an error ''HTTP referrer not valid'' then open a new
browser window and paste in the link and it should be ok.
The following features are not