thanks a lot m*n :)
C
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegrou
Hi Folks,
I have a model called Interview. I want retrieve from the model database
a list (maybe is much better say array) with some fields. Exactly I
want the column values from the attribute :created_at in an array. I
used @interview.select(:created_at) but I have an array with the
attributes
thanks a lot for your useful answers
C
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsub
Hi Folks,
I have a question unfortunately on the net didn't find a simple answer
to my simple question
MY QUESTION
if I have a commit for example
commit 9da53d968e8676a9d22d9fb57v56fef45426937cf
Author: Cluter
Date: Thu Feb 7 15:42:37 2013 -0800
and after I change again the code how can add
thanks,
C
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To p
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX Lion I use the follow
keyboard button:
Ctrl + Z
but after that I launch the command: "ps"
the webrick server is always active I have to kill the process with:
kill -9 [ID PROCESS]
exist a command to kill inst
Ciao,
mi sa che hai sbagliato forum (questo e' il forum in inglese) devi
scrivere il post del forum che si aprirà ' cliccando il seguente link:
http://www.ruby-forum.com/forum/19
in bocca al lupo,
bye,
C
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
thanks for your answer
even if I don't speak a perfect english I really appreciate your answer
only I hope to understand your effort
thanks a lot again
C
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: T
Hi Guys,
I'm reading the Rails 3 Way by Obie Fernandez and talk about the
dynamic_form plug in but in this article
http://asciicasts.com/episodes/211-validations-in-rails-3
I read that in the dynamic_form plugin uses deprecate methods in the
Rails 3 framework as error_messages_for
Which is your
Hi Guys,
I don't know why but I can't add a correct value in the database instead
to add the correct value I add a ID
for the schema.rb file I have
create_table "apples", :force => true do |t|
t.string "name"
t.integer "basket_id"
t.datetime "created_at"
t.datetime "updated_a
Thanks for the answers,
follow the source web page, I have:
Basket
Please
select
Awesome
Normal
Apple
Please
select
Green
Red
Yellow
White
To works I have to pass the right variable in the follow line
options = $(apple).filter("[label=#{basket}]").html()
I think the problem is here: label=#
Hi,
I also want a dynamic select menu but I want use jQuery and in my case
it doesn't works (I follow a different sly verano's tutorial) follow all
my steps
NOTE: I want use a list of data from a database
HOW CREATE the MODELS
$ rails generate model basket shape:string
$ rails generate model ap
Hi,
I figured out this error
undefined method `basket' for #
simply add two columns (apple & basket) in the table called Table :)
now appear correctly the webpage with the drop down menu so
If you have in the app/views/table/new.html.erb
1. <%= form_for @table do |f| %>
2. <%= f.collection_s
Hi Javier,
you are right I just added it anyway when I reloaded the page now I have
another error
undefined method `basket' for #
I edit the basket and apple controller with
def index
@basket = Basket.find(:all)
end
def index
@apple = Apple.find(:all)
end
but I have always the same erro
ss Table < ActiveRecord::Base
belongs_to :apples
belongs_to :baskets
end
maybe above you can see a logic error? or syntax error?
thanks anyway,
C
Colin Law wrote in post #1052589:
> On 21 March 2012 00:27, Cluter Vipic wrote:
>> end
>>
>> true}) %>
>> meanwhi
Hi Folks,
I want a form in a rails 3.0.10 app with form_for exactly I have 3
models
@apple, @basket, @table
class Apple
belongs_to :tables
belongs_to: baskets
end
class Basket
belongs_to :tables
has_many :apples
end
class Table
has_many :baskets
has_many :apples
end
M
Hi Folks,
I'm writing a multistep form with the the help of Ryan Bates
http://railscasts.com/episodes/217-multistep-forms
but I want change a little the form after the confirmation redirect to
the notification page that appear to the user to communicate that the
form just filled out I want that
Hi Guys,
I'm working to show a RoR form webpage on an iPhone
WHAT I DID
1. create a model controller and view called 'form'
2. create a view for a html format and for a mobile format
3. I have the view form in the new.html.erb and new.mobile.erb file
4. for the html format I don't have proble
thanks Guilherme
your idea it's the best solution to figure out my issue
:)
pd. I'm working on it
--
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 rubyonra
Hi all,
maybe is a newbie question anyway
1. I create de rails app with
# rails new {my app}
2. after I add some gem to my Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.1'
gem 'sqlite3'
gem 'simple_form'
gem 'execjs'
gem 'therubyracer'
# Gems used only for assets and not require
Hi,
a little newbie question about the form
I want a dynamic form similar to this
http://www.webstyling.it/script/javascript/form/modulo%20variabile.html
instead to have a drop down menu I want a radio button option
- radio button 1
- radio button 2
- radio button 3
in function of my choice (
No need create only 2 simple line in the follow file
#app/controllers/topics_controllers
def new
@topic = Topic.new
@post = Post.new
end
def create
def create
@topic = Topic.new(params[:topic])
if @topic.save
@topic = Topic.new(:name => params[:topic][:name], :forum_id =>
pa
Radhames Brito wrote in post #988228:
> On Fri, Mar 18, 2011 at 5:01 PM, Cluter Vipic
> rails c
>
> at the app directory, then try mixing
>
> r.generate :controller => :invitations, :action => create ,
> :invitation_token => "123"
>
> un
I'm studing a forum and when I create a Topic I have a _form.html.erb
relative a file inside follow directory
#app/views
new.html.erb
_form.html.erb
the snippet controller to create a new topic is the follow
#app/controllers/topics_controller.rb
def create
@topic = Topic.new(par
Radhames Brito wrote in post #988052:
>>
> try this , go to the console and type rails c, then type this
>
> r = ActionController::Routing::Routes
>
> then
>
> r.generate :controller => :invitations, :action => create , :
> invitation_token => "123"
>
> see if it generates what you want , then use
Radhames Brito wrote in post #987907:
>@invitation = Invitation.new(params[:invitation])
>respond_to do |format|
> if @invitation.save
> Mailer.invitation(@invitation,
> signup_url(*:invitation_token=>*@invitation.token)).deliver
>format.html { redirect_to(@invitation, :n
INVITATION BETA EMAIL
I have in the email that the app send to friend's email address
You are invited to ExampleApp.com click below to signup
http://localhost:3000/signup.efweiuvwnjernfwkefwebhsohj
But I have a dot in the url beteween http://lo
SOLUTION!
take off from /app/config/locales the routes.rb file!
I don't know why the file was there, sorry!!!
bye and I wish all a nice day
Cluter
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" gr
Hi All,
I use rails 3.0.1 in my application and when the server web load this
following page http://localhost:3000/signup
Sign up
<%= form_for(@user) do |f| %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.
29 matches
Mail list logo