Hi,
When I submit my form, the value *form_id* is empty, even though I could
see it had a value when I inspected the HTML.
Any clue why it´s stripped? form_id is a virtual attribute on Feature
I´m running Rails 4
1 class Feature ActiveRecord::Base2 belongs_to :request3
On Tuesday, September 3, 2013 11:32:22 AM UTC+1, Martin Stabenfeldt wrote:
*form.html.slim*
6 = simple_form_for([@request, @feature], remote: remote, 7 html: {class:
form-inline new_feature feature#{n+1} }) do |f| 8 .border.padding10 9
= f.error_notification10 11
Had this working until I refactored by putting into a hash and checking
for blank. Now I get the error: undefined method `key?' for
nil:NilClass.
I'm still kind of new at this and would appreciate suggestions on what I
am missing...
before_validation :capitalize_first_words
def
Netbeans dropped support for rails. The last version to include rails is
6.9.1. It is slightly buggy, but I use it all the time.
--
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
Woops, thanks Fred! :-)
On Tuesday, September 3, 2013 2:53:35 PM UTC+2, Frederick Cheung wrote:
On Tuesday, September 3, 2013 11:32:22 AM UTC+1, Martin Stabenfeldt wrote:
*form.html.slim*
6 = simple_form_for([@request, @feature], remote: remote, 7 html: {class:
form-inline
Maybe you mean this?
before_validation :capitalize_first_words
def capitalize_first_words
[:question, :correct_ans_1, :correct_ans_2, :correct_ans_3].each do
|key|
self.key = key.gsub(/^(\W*?[a-z])/) { |m| m.upcase }
if !key.blank?
end
end
вторник, 3 сентября 2013
Michael Aleksandrovich wrote in post #1120515:
Maybe you mean this?
before_validation :capitalize_first_words
def capitalize_first_words
[:question, :correct_ans_1, :correct_ans_2, :correct_ans_3].each
do
|key|
self.key = key.gsub(/^(\W*?[a-z])/) { |m| m.upcase }
if
Our client is looking for an energetic and organized candidate to fill a
Web Software Developer role. In this position, you will work as a key
member of the Engineering team to design, build and test a groundbreaking
product for a premier global telecom company.
Participate in architecture
Now giving error:
undefined method `key' for #Question:0x007fdff26b7798
In Question model:
before_validation :capitalize_first_words
def capitalize_first_words
[:question, :correct_ans_1, :correct_ans_2, :correct_ans_3].each
do |key|
self.key =
I use an imaging sdk which can create thumbnails found on the internet .
Install it and it becomes a selectable processing option.Then you can
create thumbnails in your image in any program at all, including Adobe
Acrobat . Just open the images, select thumbnail,and follow the setps
given in
Hello All,
I am not able to solve this problem.
Net::SMTPAuthenticationError: 534-5.7.9 Please log in with your web browser
and then try again.
I am not getting this every time. I am getting this sometimes. What can be
the issue?
Thanks,
Avinash
--
You received this message because you are
This is my configuration :-
config.action_mailer.default_url_options = { :host = 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address = smtp.gmail.com,
:port = 587,
:domain = 'gmail.com',
:user_name
Hi All,
I have a question here: How to Speed up image processing of Paperclip in
Acceptance Tests
When running capybara feature specs I can see lots of Slow factory notices
which are populated byfactory_girl. These Slow factory things heavy slow
down the feature specs, I think, even
13 matches
Mail list logo