Hi everyone! I've pushed a release candidate for Rails 3.2.7. Please try it
out! If you find any bugs present in the 3.2.7 release candidate that where not
present in the 3.2.6 release, please report them to the Rails Core mailing list
at here:
https://groups.google.com/group/rubyonrails-core
On Mon, Jul 23, 2012 at 1:19 PM, lalalalala pqpqpqpqpq
wrote:
> what do you mean by log entry.
I have no idea what your background is, but you really, really do need
to address the basics of web development, aside from anything Ruby-
or Rails-specific.
Good luck,
--
Hassan Schroeder ---
On 20 July 2012 21:22, lalalalala pqpqpqpqpq wrote:
> Hi, I want to link the selections from a drop down menu in my view to a
> controller action. Here's the code for my view:
>
> [code]
> <%= link_to "option A", :controller => "scriptrunner", :action
> => "runoptionA" %>
> <%= link_to "option B",
what do you mean by log entry.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email
On Mon, Jul 23, 2012 at 1:07 PM, lalalalala pqpqpqpqpq
wrote:
> This is the view source after I press go:
Yeah, that's 1 of 2... :-)
--
Hassan Schroeder hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
You received this message because y
This is the view source after I press go:
optiona
optionb
optionc
--
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 rubyonrails-talk@googlegroups.
On Mon, Jul 23, 2012 at 12:42 PM, lalalalala pqpqpqpqpq
wrote:
> Ok, I changed :id => '1' to :id => 'params[:name][:id]'
In the form_tag?? Both irrelevant and wrong.
> then, I checked the view source, but no matter what option is selected,
> when I press go, the option value is always set to opt
Ok, I changed :id => '1' to :id => 'params[:name][:id]'
then, I checked the view source, but no matter what option is selected,
when I press go, the option value is always set to option A... Even when
I view source before pressing go, option valye is set to option A.
--
Posted via http://www.r
On Mon, Jul 23, 2012 at 12:12 PM, lalalalala pqpqpqpqpq
wrote:
> <% form_tag(:controller => 'opt', :action => 'index', :id => 1) do %>
><%= select_tag "option", options_for_select(@options, "") %>
><%= submit_tag "go"%>
> <%end%>
> In my controller, for my index method I have:
>
> class
This is what my index.html.erb looks like:
<% form_tag(:controller => 'opt', :action => 'index', :id => 1) do %>
<%= select_tag "option", options_for_select(@options, "") %>
<%= submit_tag "go"%>
<%end%>
In my controller, for my index method I have:
class optController < ApplicationContr
On Mon, Jul 23, 2012 at 11:28 AM, lalalalala pqpqpqpqpq
wrote:
> How would I pass the id of an option from the view to the controller? As
> in, what command in the view? And how would I access this id that is
> passed, in the controller?
You put your select in a form and submit it. That's what f
Hassan Schroeder wrote in post #1069841:
> On Mon, Jul 23, 2012 at 8:53 AM, lalalalala pqpqpqpqpq
> wrote:
>
>> I have to make this app for my internship, could you just guide me how
>> to make the submit button? I'm guessing I'll have to make a form which
>> passes the selected option to an actio
On Mon, Jul 23, 2012 at 8:53 AM, lalalalala pqpqpqpqpq
wrote:
> I have to make this app for my internship, could you just guide me how
> to make the submit button? I'm guessing I'll have to make a form which
> passes the selected option to an action in my controller?
Yes. Unless you use JavaScri
Thanks for the reply, I will investigate for that side
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from
Hassan Schroeder wrote in post #1069829:
> On Mon, Jul 23, 2012 at 8:39 AM, lalalalala pqpqpqpqpq
> wrote:
>
>> Sorry, I'm new to HTML.. I'm struggling implementing the submit button.
>
> Then trying to develop a web app might be a little premature... :-)
>
> You should find a tutorial on how web
On Mon, Jul 23, 2012 at 8:39 AM, lalalalala pqpqpqpqpq
wrote:
> Sorry, I'm new to HTML.. I'm struggling implementing the submit button.
Then trying to develop a web app might be a little premature... :-)
You should find a tutorial on how web forms work and understand
the basics first. IMO.
--
Hassan Schroeder wrote in post #1069823:
>
> Do you know HTML? Do you know JavaScript?
>
> --
> Hassan Schroeder hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
Sorry, I'm new to HTML.. I'm struggling implementing the submit button.
--
Pos
I am struggling somewhat with testing. And I would like to know a
comprehensive reference on rails unit test. I find the railscasts 5
minute video not comprehensive. I have the ruby programming language,
design patterns in ruby, and rails 3 way books and none of them delve
at all into testing. So I
On Mon, Jul 23, 2012 at 7:59 AM, lalalalala pqpqpqpqpq
wrote:
> Now, how would I add a submit button in my view so when some1 has for
> example, "A" selected, the action runA would be called in my controller.
Using the same suggestions you already got for the same question?
It's either a form a
Do you want to build the front-end of a product used by thousands of
people all over the world every month?
Do you want to build the most delicious and usable web app in the travel
industry by balancing design aesthetic and bulletproof code?
Wimdu is an exciting start-up company headquartered in B
Ok, i changed my view to
<%= select_tag "options", options_for_select(@options, "") %>
and in my controller I have:
def index
@options = ["A", "B", "C"]
end
Now, how would I add a submit button in my view so when some1 has for
example, "A" selected, the action runA would be called in my contr
Colin Law wrote in post #1069800:
> On 23 July 2012 12:15, Sebastjan H. wrote:
>>> Colin
>> zsh: " => not installed"
>> date: "2012-04-20"
>> ruby: "/home/sebah/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
>> MY_RUBY_HOME: "/home/sebah/.rvm/rubies/ruby-1.9.3-p194"
On 23 July 2012 12:15, Sebastjan H. wrote:
> Colin Law wrote in post #1069764:
>> On 23 July 2012 11:58, Sebastjan H. wrote:
Colin
>>> # =* - current && default
>>> # * - default
>>
>> What does
>> rvm info
>> show?
>>
>> Colin
>
> rvm info:
>
> ruby-1.9.3-p194:
>
> system:
> uname:
lionel first-developer wrote in post #1069780:
> Try this as well :
>
> *rvm use ruby-1.9.3-p125*
>
> and retry :)
>
nope, still the same error as above.
/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs':
Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /usr/
Try this as well :
*rvm use ruby-1.9.3-p125*
and retry :)
2012/7/23 Sebastjan H.
> Rick Lloyd wrote in post #1069775:
> > My guess is you've got something wrong in your shell environment. What
> > do
> > you see when you type:
> >
> > $(*which ruby) --version*
> produced
> bash: syntax e
Rick Lloyd wrote in post #1069775:
> My guess is you've got something wrong in your shell environment. What
> do
> you see when you type:
>
> $(*which ruby) --version*
produced
bash: syntax error near unexpected token `--version*'
and
> *`which ruby` --version*
produced
bash: */home/sebah/.r
My guess is you've got something wrong in your shell environment. What do
you see when you type:
$(*which ruby) --version*
NOTE: this is proper syntax for sh, bash, or ksh. For csh use: *`which
ruby` --version*
Rick
On Monday, July 23, 2012 7:15:39 AM UTC-4, Ruby-Forum.com User wrote:
>
write the following code in development.rb
config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:tls => true,
:enable_starttls_auto => true,
:address => 'smtp.gmail.com',
:port => 587,
:authentication => :plain,
:us
Thanks,
Indeed, when a message is send as a String, it will be taken literally,
and if it is send as a Symbol, it will be looked up in the translation
table.
Nifty!
Cheers
ace
On Friday, July 20, 2012 8:21:50 PM UTC-4, Ace Suares wrote:
>
> In validations, one can add a custom error message:
Dear sirs,
I dont't think the addition of :message => "can't be blank" does make a
difference.\
Validations have their own strings already packed, in en.yml in the
active_model gem. In the console (rails c) you can try it out (assuming
your model is named 'Person'):
p=Person.new
p.valid?
p.
Colin Law wrote in post #1069764:
> On 23 July 2012 11:58, Sebastjan H. wrote:
>>> Colin
>> # =* - current && default
>> # * - default
>
> What does
> rvm info
> show?
>
> Colin
rvm info:
ruby-1.9.3-p194:
system:
uname: "Linux sebah-laptop 3.0.0-23-generic #38-Ubuntu SMP Fri
Jul 6
On 23 July 2012 11:58, Sebastjan H. wrote:
> Colin Law wrote in post #1069761:
>> On 23 July 2012 10:29, Sebastjan H. wrote:
regards,
seba
>>>
>>> how would I check for and completely remove version 1.8?
>>
>> I strongly advise using rvm. Then you will have full control of ruby
>> and
Colin Law wrote in post #1069761:
> On 23 July 2012 10:29, Sebastjan H. wrote:
>>> regards,
>>> seba
>>
>> how would I check for and completely remove version 1.8?
>
> I strongly advise using rvm. Then you will have full control of ruby
> and gem versions.
>
> Colin
I am using rvm and according
On 23 July 2012 10:29, Sebastjan H. wrote:
> Sebastjan H. wrote in post #1069754:
>> lionel first-developer wrote in post #1069751:
>>> It seems that you still using ruby 1.8.
>>>
>>
>> I thought so too, however, ruby -v gives:
>>
>> ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
>>
>>
>>
This is my code for the button to submit this delete request,
<%= link_to 'Destroy Selected',
> {:action => 'destroySelected',
> :contact_ids => 'contact_ids[]'},
> :remote => true%>
>
Where destroySelected is the action in controller to delete the
Sebastjan H. wrote in post #1069754:
> lionel first-developer wrote in post #1069751:
>> It seems that you still using ruby 1.8.
>>
>
> I thought so too, however, ruby -v gives:
>
> ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
>
>
> regards,
> seba
how would I check for and completely r
Wimdu is an exciting start-up company headquartered in Berlin and one of
the biggest Ruby projects in Europe. Initially funded with US$90
million, Wimdu has grown to host over 50,000 properties in over 100
countries since March 2011. Our main concept is to “travel like a
local”. This idea is spread
Hi,
Still nothing has changed. The log shows parameters being passed as,
Parameters: {"contact_ids"=>"contact_ids[]"}
>
Complete log is
Started GET "/destroy_selected?contact_ids=contact_ids%5B%5D" for 127.0.0.1
> at Mon Jul 23 14:56:04 +0530 2012
> Processing by ContactsController#destroySelec
lionel first-developer wrote in post #1069751:
> It seems that you still using ruby 1.8.
>
I thought so too, however, ruby -v gives:
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
regards,
seba
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are s
It seems that you still using ruby 1.8.
Try :
*ruby -v *
And show me the output. If it's not ruby 1.9.3-p194, just install this
version of ruby
*rvm install 1.9.3-p194 *( if you are using 'rvm' as ruby management tool )
Keep me posted
;)
2012/7/23 Sebastjan H.
> Hi,
>
> I've just installed
Hi,
I've just installed the latest gem version and also rails. Everything
went ok. I am using Ubuntu 11.10 with ruby 1.9.3-p194.
However, when I try to create a new application, I get:
---
/usr/local/lib/site_ruby/1.8/rubyge
Preciso de um freelancer que entenda bem a linguagem para administrar um
projeto já criado.
Para os interessados, envio aqui meu contato pessoal para mais informações.
andd.salvado...@gmail.com
Obrigado
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
this works fine for me:
http://www.skuunk.com/2008/05/checkbox-arrays-in-rails.html
:)
2012/7/20 Sumit Srivastava
> I am aware of that. But I am not able to figure out the way I should pass
> the parameters. I need help with that.
>
>
> On Friday, 20 July 2012 19:28:19 UTC+5:30, Hassan Schroeder
Hi.
I think you should use cron and `script/runner'.
2012/7/20 honey ruby :
> Hi all,
>
> How can i send mails in rails 2.3.8 and schedule them when i need it.
> i've tried with whenever gem but it did not work properly . can any one help
> me out .
>
> thanks in advance
>
> --
> You receiv
Following link might be useful for you
http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html
On Wednesday, June 13, 2012 11:06:56 PM UTC+5:30, Loganathan Sellappa wrote:
>
> Hi All,
>
> I want to create an application which needs to provide SOAP services to
> multiple
On Thursday, July 19, 2012 6:53:43 AM UTC-5, paulie wrote:
>
> I personally don't like them at all. I wish that all the names of
> controllers/routes/models were unchanged so I wouldn't have to keep
> deciding whether I needed to pluralize. I remember spending too much
> time trying to straighte
Hey all,
--
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@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this d
Is GitHub the first thing you think of when when you hear “forking”?
Wimdu is an exciting, new start-up company headquartered in Berlin and
one of the biggest Ruby projects in Europe. Initially funded with US$90
million, Wimdu has grown to host over 50,000 properties in over 100
countries since Mar
48 matches
Mail list logo