[quote]
RailsSpace is an introductory book, so we don't assume any knowledge
of the Ruby programming language or of the Rails framework.
[/quote]
personally i didn't read that book, but judging from the above
statement (taken from the introduction of this book) it should be ok
to get in touch
CGI::Session.expire_after 2.hours
that's not entirely true. the above mentioned code only works with the
dynamic_session_exp plugin. without plugins for CGI::Session there are
only few methods like new or delete (http://www.ruby-doc.org/core/
classes/CGI/Session.html).
you gotta try to install rails 2.3. all other previous versions are
not compatible with 1.9.1.
on the other hand: anything could cause an error of which i don't even
see the error-message...
--~--~-~--~~~---~--~~
You received this message because you are
take a look at the :include = :modelname option.
--~--~-~--~~~---~--~~
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
Hi All,
There is an issue with AWS in SOAP response XML generated for Array
types.
If we are using array types in signature at returns place, then in
SOAP response XML for this method array elements are represented with
item tags.
How can we give another meaningful tag name or give attribute
I don't fully understand. For example when you ask for the intersection 'a
n b' do you mean all records that are the same in the two tables or the
intersection of the fields of the tables (ie fields that exist in in both
tables). If you mean those records that exist in both, do the tables have
Hello,
I'm trying to install the blackbook gem on my m/c with centos , but i
get the following error:
Building native extensions. This could take a while...
ERROR: Error installing blackbook:
ERROR: Failed to build gem native extension.
/opt/ruby-enterprise-1.8.6-20090201/bin/ruby
Hi, following the documentation at
http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html#M000543
assert_template should accept :partial options
eg. assert_templace :partial = '_foo'
But, here with Rails 2.2.2, I get an error
TypeError: wrong argument type Hash
Hey, namespace collisions can be troubling, but I'm confused. You said
you made a method on a non-activerecord model but then you said it
worked once you removed the db definition.
Yes, exactly. That's the irony. The only way to get it working _in
production_ (or test, as I discovered now)
is
My app needs to play videos. They are stored in a huge library and are
all about 2mb in size. They are avi files.
The user enters criteria which selects the appropriate videos and I
need to offer a playlist.
Playing one at a time offers no problem - just use send_file and the
file gets downloaded
Hi there,
I want to get Rails dumps of the session on my pages by %= debug
(session) % with Rails 2.2.2. But it returns a lot of information on
my pages. It is un-readable. Can I format or filter the session debug
information?
Thank you.
--~--~-~--~~~---~--~~
Being new to rails and ruby, I am trying to figure out how things fit
together. In particular i am trying to understand how attributes such
as session and cookies are made available to Controller tests.
Specifically I am working on a test from the RailsSpace book which
extends
Hi,
I get the below error while trying to install rails.
Could you please help me out. I have installed the Ruby(v 1.8.6) and
the setup gems(v 1.3.1) also.
C:\Rubygem install rails
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or
Clarification:
It's a class method. Named all_noload, it returns []. I suspect it
doesn't get called at all (I issued a print).
Named 'humptydumpty', it works fine, as it does in development or
test. Textually, both are the same
except the name behind def.
It doesn't work in test (as
Thanks to both for the clarification, I was already guessing that
to_query was the correct choice for my scenario, but now I'm much more
confidant!
cheers
Miguel Regedor
On Mar 12, 6:27 pm, ruby...@ymail.com ruby...@ymail.com wrote:
On 12 Mar., 19:25, ruby...@ymail.com ruby...@ymail.com wrote:
Check your gem and ruby installations and check there versions.
gem -v
ruby -v
Thanks,
Shahroon
On Fri, Mar 13, 2009 at 10:51 AM, Sharon sharon.vin...@gmail.com wrote:
Hi,
I get the below error while trying to install rails.
Could you please help me out. I have installed the Ruby(v 1.8.6)
On Mar 13, 3:38 am, Karl karl.b...@gmail.com wrote:
Being new to rails and ruby, I am trying to figure out how things fit
together. In particular i am trying to understand how attributes such
as session and cookies are made available to Controller tests.
Specifically I am working on a test
I am using a file_field_tag and when I am getting the value on the
controller, it only gives me the file name and not the file path. I
really need the full file path, how can i do it ? I'll give you a part
of my code.
form action= /entrees/lireXML
labelFichier:/label%= file_field_tag xml_file
try something like:
sudo gem install rails --source http://gems.rubyonrails.org
--~--~-~--~~~---~--~~
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
The documentation appears to be incorrect, Rails 2.2.2 expects the name of
the template (or regexp) as the first arg.
I suspect the documentation relates to Rails 2.3. Can someone confirm this?
Is there any way of determining which version of Rails the docs in
api.rubyonrails.org relate to?
actually i found out that it works with internet explorer but not with
firefox ! Anyone know how to manage to make it work on firefox
please ?
On 13 mar, 11:01, BoBKilla bobki...@gmail.com wrote:
I am using a file_field_tag and when I am getting the value on the
controller, it only gives me
Rake plugin tests are not run anymore (rake 0.8.4 or 0.8.3) !
rails foo
cd foo
script/generate plugin bar
cd vendor/plugins/bar
rake test
No test is run, no output of the usual number of assertions, number of
tests...
rake output is
(in /usr/local/www/foo/vendor/plugins/bar)
/usr/bin/ruby
Hi, forst at all sorry if my english is not the best. I have a problem
with a form. I use REST routes, encuestas has_many preguntas and
preguntas belongs_to encuesta and has_many votados.
I want to show in a form all the respuestas in one encuesta. I tried
with this
%form_for [...@encuesta,
Thanks for the help...
actually i am using places hash evrywhereso i dnt want
modifications throughout the code...n files...so..i want to put the
all retrieved records to be placed in that...places.
n i want it at the start of controller call...
thats y...
ok i tried ur statments
Hey,
Please refer to correct usage of form_for:
API: http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html
with examples:
http://apidock.com/rails/ActionView/Helpers/FormHelper/form_for
On Fri, Mar 13, 2009 at 1:21 PM, Jose vicente Ribera pellicer
Thanks a lot. Working now.
@MaD - Thanks for the link
--~--~-~--~~~---~--~~
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
One thing I really like about Java compared to PHP is that there's an
official coding standard. This is because I don't really mind which standard
I use, I just want to be told what to do and have the highest likelihood
that other code I encounter in that language will use a standard that I'm
used
If you change line 5 of version.h from
#define RUBY_PATCHLEVEL -1
to
#define RUBY_PATCHLEVEL 1
rubygems won't complain.
Regards,
Troy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
You dont need an Ajax call for this. RJS is enough.
in helper
def add_text_link(name)
link_to_function name do |page|
page[:text_area] = This is new line
end
end
in view
%= add_text_link Insert text into text area using JS %
On Mar 12, 7:18 pm, Sudhi Kulkarni
hi all,
I am updating 50 records on one page with update_attributes method
,my validations are
validates_numericality_of :year, :greater_than_or_equal_to = 1900,
:less_than_or_equal_to = 2028, :message = Year must be between 1900
and 2028
valdate_presence_of:title
Hi,
I have a multiple checkbox of values 1 to 7 for selecting weekdays.
What is the possibility of storing the selected weekdays array in
mysql
and what type of field should i create in the table for storing the
array.
Any suggestions???
Regards,
Vimal Das
Well they are more or less same, we used to have our own set of conventions
on par with other existing scripting languages. This to ensure all the
code-base is in sync :)
On Fri, Mar 13, 2009 at 1:10 PM, John Fletcher j...@saltwebsites.comwrote:
One thing I really like about Java compared
Interesting,
nothing extra tweaks are required to achieve this.
%= select_tag days[], options_for_select([ Mon, Tue, Wed,
Thu,Fri,Sat,Sun,], Monday),:multiple = true %
This would ensure that your selection is stored into array days[].
You can store this as string into db with a delimiter
John Fletcher wrote:
One thing I really like about Java compared to PHP is that there’s an
official coding standard.
If the Official Coding Standard just... jumped off a cliff, would you?
Bearing that in mind... I’m starting to learn Ruby and noticed there
doesn’t appear to be an
try with update_attributes! (which internally uses 'save!')
On Fri, Mar 13, 2009 at 2:00 PM, Nilesh Kulkarni
rails-mailing-l...@andreas-s.net wrote:
hi all,
I am updating 50 records on one page with update_attributes method
,my validations are
validates_numericality_of :year,
ok...
I got the solution by myself
now i am using the code...
@companies.each do |company|
places [ {:address = company.addr, :description =
company.cname , :image = company.img}]
end
it is working without ant error...
but now the problem is that .
the values are getting overwritted
I think that select_hour(0) and select_minute(0) it's what I need. I
just want to save the time it's needed to complete a task, so I only
need to select and hour and minutes. How should I save this? Like a
string or like a datetime? I think it would b better datetime, because I
want to search
On Fri, Mar 13, 2009 at 4:07 AM, Jeba Momin
rails-mailing-l...@andreas-s.net wrote:
Hello,
I'm trying to install the blackbook gem on my m/c with centos , but i
get the following error:
Building native extensions. This could take a while...
ERROR: Error installing blackbook:
Go to flowplayer.org. You can easily integrate this player which will
work with avi files. You can program it to your hearts desire. I am
using it in a similar fasion on my site.
Sean McGilvray
Sent from my iPhone
On Mar 13, 2009, at 2:33 AM, Martin Hawkins martin.hawk...@gmail.com
thanks! I was missing the .
I'll give that a try
On Mar 12, 2:00 pm, Starr Horne st...@chatspring.com wrote:
On Thu, 12 Mar 2009 04:38:15 -0700 (PDT)
phil p...@philsmy.com wrote:
For some reason my users get logged out when they switch to a
subdomain.
You need to specify a wildcard
John Fletcher wrote:
http://www.caliban.org/ruby/rubyguide.shtml#style? If so I will follow
I got 4 lines into this document and my brain threw a fatal exception
after this statement:
header block with author's name, Perforce Id tag...
When I saw Perforce Id, I stopped processing the
This is a bug.
Described here
http://rails.lighthouseapp.com/projects/8994/tickets/1878-a-generated-plugins-tests-are-not-run-by-rake-test
The generated test_helper.rb file is faulty
Solution is to
require 'test/unit' at the top of test_helper.rb
--
Posted via http://www.ruby-forum.com/.
On Fri, Mar 13, 2009 at 8:00 AM, John Smith
rails-mailing-l...@andreas-s.net wrote:
I think that select_hour(0) and select_minute(0) it's what I need. I
just want to save the time it's needed to complete a task, so I only
need to select and hour and minutes. How should I save this? Like a
Hi All,
Please help me out for this issue
Issue is: how to integrate authorised.net with rails application:
thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
Excellent, thank you, just what I needed.
On Mar 13, 1:06 pm, Sean McGilvray smcgilv...@gmail.com wrote:
Go to flowplayer.org. You can easily integrate this player which will
work with avi files. You can program it to your hearts desire. I am
using it in a similar fasion on my site.
I have an app that relies on a series of helpers to generate language
specific text strings for all output.
In one of my models I have to save one of these language specific
strings to the table.
Therefore I've started investigating how I can accesss my helpers in my
model - I know this is not
Charles Johnson wrote:
On Fri, Mar 13, 2009 at 8:11 AM, Jeba Momin
rails-mailing-l...@andreas-s.net wrote:
Exactly the same error message? (Sorry about asking that.)
Cheers--
Charles
Yes..exactly the same error message
And I don't have the privileges to install YUM on the m/c.
Hi,
I
'm rather new to Ruby, but most of what it mentions seems similar to what
I've seen so far.
The only thing I question is that it says always to include the parentheses
around parameter lists. I tend to do the very opposite, only including
parentheses when absolutely necessary. I think
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-
t...@googlegroups.com] On Behalf Of Phlip
Sent: Friday, March 13, 2009 8:42 AM
To: rubyonrails-talk@googlegroups.com
Subject: [Rails] Re: Coding standards
That notation looks unfamiliar, and it saves
Rudi W. wrote:
Therefore I've started investigating how I can accesss my helpers in my
model - I know this is not best practise, but its the only way I can see
to make this work.
So your idea here is to fix a bad practice by using an even worse
practice?
How do I reach my helpers in the model
On Mar 13, 8:22 am, Anshali Dhande rails-mailing-l...@andreas-s.net
wrote:
Hi All,
Please help me out for this issue
Issue is: how to integrate authorised.net with rails application:
thanks
--
Posted viahttp://www.ruby-forum.com/.
http://lmgtfy.com/?q=authorize.net+rails
Jeff
Anshali Dhande wrote:
Hi All,
Please help me out for this issue
Issue is: how to integrate authorised.net with rails application:
thanks
Check to works of Cody Fauser for this at http://www.activemerchant.org/
NoJ
--
Posted via http://www.ruby-forum.com/.
I don't see mongrel going anywhere any time soon. True, Passenger is
the way to go for production but for development mode mongrel is the
clear winner. Who wants to setup an Apache instance and edit config
files for every new project in development?
- Brian Cardarella
On Mar 12, 12:19 pm, Gene
Brian Hogan wrote:
I have found that the best solution to this problem is to use an image
button for the submit button, and then use css to apply the same image
to the back link. It's accessible and requires no javascript.
That's not a bad approach. It would be one way to get a consistent
http://www.caliban.org/ruby/rubyguide.shtml#style? If so I will follow
I got 4 lines into this document and my brain threw a fatal exception
after this statement:
header block with author's name, Perforce Id tag...
When I saw Perforce Id, I stopped processing the document.
Does the
Brandon Olivares wrote:
The only thing I question is that it says always to include the parentheses
around parameter lists. I tend to do the very opposite, only including
parentheses when absolutely necessary. I think Phlip said something similar?
Unless I totally misunderstood.
Omit the
Can you clarify this? I don't quite understand, but it looks intriguing.
Don't do this:
unless good_thing
bad_path
else
good_path
end
Do this:
if good_thing
good_path
else
bad_path
end
The condition should almost always use an 'if', should always state
@Robert:
I totally agree with your approach. I was merely stating how the
requested goal could be achieved. As web experts, you and I understand
how the web works and how users perceive things, but our clients often
demand that we do things in different ways.
On Fri, Mar 13, 2009 at 9:25 AM,
Brian Hogan wrote:
@Robert:
I totally agree with your approach. I was merely stating how the
requested goal could be achieved. As web experts, you and I understand
how the web works and how users perceive things, but our clients often
demand that we do things in different ways.
@Brian.
On Mar 13, 1:37 pm, Jeba Momin rails-mailing-l...@andreas-s.net
wrote:
Charles Johnson wrote:
On Fri, Mar 13, 2009 at 8:11 AM, Jeba Momin
rails-mailing-l...@andreas-s.net wrote:
Exactly the same error message? (Sorry about asking that.)
Cheers--
Charles
Yes..exactly the same
Greg - this works but is flagged by popup blockers on IE and
Firefox. Any thoughts on methods around this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
Hi,
I created a custom generator, but i won't some files deleted when i
call script/destroy.
So, i'm trying undesrtand how don't delete a specific file generated.
When i call script/destroy It's destroying everything that was
created by script/generate.
Anyone know about some option to skip
Thanks for your help, Charles. I appreciate it.
What I want is the duration needed to complete a specific task. So when
I have a lot of tasks, I will be able to search tasks width its
durations is bigger that 2 hours and 10 minutes, for example. I don't
care about days, monts of yearsM I only
If I have in Order -model row: belongs_to :customer it joins two tables
and show customers information. But if I don't need user informatioan,
can I temporarily disable it and speed up select?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
Hi guys,
What is the best way to include ad banners in rails? Do you include them
in default layout? What is the ideal way if the ad has to change each
time?
Thanks,
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message
I have two tables - Account and Enpseudo. My accounts table has an
enpseudo_id. I am trying to do an inner join on Enpseudo and keep
getting this error:
Association named 'account' was not found; perhaps you misspelled it?
I imagine this means that I have the associations in my models sut-up
Hi All,
I've searched on this topic and can't seem to find anyone results saying
others have had the same problem, so hope someone here can help.
if in routes, I map addresses:
map.resources :addresses
If get the following routes:
addresses
new_Address
edit_Address
Note that the singular
short answer is no. for several reasons:
1) Rails find methods select all columns by default, and by taking the
belongs_to out of the class (which is how i assume u want to diasble
it) it will still include the attribute customer_id it in the results.
2) Rails doesnt load associated objects by
I created model named whats_new.
$ script/generate model whats_new
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/whats_new.rb
create test/unit/whats_new_test.rb
create test/fixtures/whats_news.yml
exists db/migrate
I DO NOT MARSHALL
1. [?][?]
On Fri, Mar 13, 2009 at 5:04 PM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
Brian Hogan wrote:
@Robert:
I totally agree with your approach. I was merely stating how the
requested goal could be achieved. As web experts, you and I understand
What is the best way to include ad banners in rails? Do you include
them
in default layout? What is the ideal way if the ad has to change each
time?
My advice would be to not to do it. Tie Rails into an existing ad
server. You really don't want to have to write your own ad server if
I tried enpseudo.accounts to make sure that association was working and
it was. I ended up doing straight sql to get what I needed, but I
thought learning how to do it the rails way would be interesting.
--
Posted via http://www.ruby-forum.com/.
I created model named whats_new.
$ script/generate model whats_new
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/whats_new.rb
create test/unit/whats_new_test.rb
create test/fixtures/whats_news.yml
exists db/migrate
Sumanth Krishna wrote:
Hey,
Please refer to correct usage of form_for:
API:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html
with examples:
http://apidock.com/rails/ActionView/Helpers/FormHelper/form_for
On Fri, Mar 13, 2009 at 1:21 PM, Jose vicente Ribera
Does anyone know a graceful way to stop the Starling service? I can't
seem to find any documentation and have just been issuing a kill
command on the pid.
Thanks,
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I've heard that using LIKE is very slow, but I see it being used a lot
in examples, blogs etc. Is it really that bad? Since Rails doesn't
directly support Fulltext search, this is the easiest way to get
searching done, right? Or are there any other easier ways? I'm using
acts_as_indexed right
On Fri, Mar 13, 2009 at 11:27 AM, John Smith
rails-mailing-l...@andreas-s.net wrote:
Thanks for your help, Charles. I appreciate it.
What I want is the duration needed to complete a specific task. So when
I have a lot of tasks, I will be able to search tasks width its
durations is bigger
Makes sense. My only confusion is I thought that in ruby methods and
attributes can be imported to a class either through inheritance or
importing a module. In this case, these extra attributes such as session
or cookies do not exist within the parent class nor the imported module.
Is rails
On Fri, Mar 13, 2009 at 12:42 PM, Mike C snib...@gmail.com wrote:
I've heard that using LIKE is very slow, but I see it being used a lot
in examples, blogs etc. Is it really that bad? Since Rails doesn't
directly support Fulltext search, this is the easiest way to get
searching done, right?
Thanks, that makes things clearer. But how big is big? I don't plan on
my app being hugely popular, but would thousands of entries be ok? Is
there an area where LIKE starts to be really slow?
On Mar 13, 11:06 am, Charles Johnson gm.johns...@gmail.com wrote:
On Fri, Mar 13, 2009 at 12:42 PM,
Philip Hallstrom wrote:
What is the best way to include ad banners in rails? Do you include
them
in default layout? What is the ideal way if the ad has to change each
time?
My advice would be to not to do it. Tie Rails into an existing ad
server. You really don't want to have to write
Likes are always slow if you must do a suffix match ( %something ),
as no index can handle that. But if you're doing a prefix match (
something% ) it won't be that bad.
And there's no how big is big. You can have a slow app with a
thousand rows and a hundred queries per second, and you can have
On Fri, Mar 13, 2009 at 1:11 PM, Mike C snib...@gmail.com wrote:
Thanks, that makes things clearer. But how big is big? I don't plan on
my app being hugely popular, but would thousands of entries be ok? Is
there an area where LIKE starts to be really slow?
Depending on the speed of your
Philip Hallstrom wrote:
What is the best way to include ad banners in rails? Do you include
them
in default layout? What is the ideal way if the ad has to change
each
time?
My advice would be to not to do it. Tie Rails into an existing ad
server. You really don't want to have to
Thanks, that makes things clearer. But how big is big? I don't plan on
my app being hugely popular, but would thousands of entries be ok? Is
there an area where LIKE starts to be really slow?
If it's a blog, I wouldn't think twice about using LIKE. That is, I
can't see a blog being big
On Mar 13, 2009, at 12:55 PM, Shandy Nantz wrote:
I have two tables - Account and Enpseudo. My accounts table has an
enpseudo_id. I am trying to do an inner join on Enpseudo and keep
getting this error:
Association named 'account' was not found; perhaps you misspelled it?
I imagine this
#!/bin/sh
### BEGIN INIT INFO
# Provides: starling
# Required-Start:$local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: starling initscript
# Description: starling
### END INIT INFO
#
Nevermind. I found a custom inflection that had been added by some other
people on the project. Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Hi,
How do you validate booleans? Normally, I validate them through
validates_inclusion_of :is_root, :in = [false, true]
But when I test the :is_root attribute against a string, it passes. Here
are some examples:
passes my test = [0, 1, true, false] (they should pass right?)
don't pass =
Greg - this works but is flagged by popup blockers on IE and
Firefox. Any thoughts on methods around this?
I don't know if it helps, but I've noticed that browsers will let you open a
window via JS, as long as the JS was called as a result of a user click. The
exact same code will be
Just switched over to passenger for development and production for my
rails app. Liking it so far.
My problem is my image_links, stylesheet_tag_links, and
javascript_tag_links are all adding http://localhost:3000 to the
generated links. I got around the stylesheet and js links by not using
the
look into apache access_log, if there any regular requests to the
js/image/css files..
I'm using passenger too without any problems...
tom
Steve Odom wrote:
Just switched over to passenger for development and production for my
rails app. Liking it so far.
My problem is my image_links,
On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom steve.o...@gmail.com wrote:
Just switched over to passenger for development and production for my
rails app. Liking it so far.
My problem is my image_links, stylesheet_tag_links, and
javascript_tag_links are all adding http://localhost:3000 to the
What version of Rails/Ruby are you on?
Loading development environment (Rails 2.2.2)
addresses.singularize
= address
routes.singularize
= route
It works for me
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
Umm i have a problem.
my routes.rb :
map.resources :encuestas do |encuesta|
encuesta.resources :preguntas do |pregunta|
pregunta.resources :solucions
end
end
I can see perfecly the index of preguntas
Now I want to create a new pregunta.
My
Dear all
I was wondering how can i use i18n to translate next and previous in
the will paginate plugin
any idea
thank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
I tried with:
form_for [...@encuesta, @pregunta] do |f|
%= f.error_messages %
p
%= f.label :texto %br /
%= f.text_field :texto %
/p
...
end
The result is the same. I thinking that perhaps i can0t do restful
forms :(
--
Posted via http://www.ruby-forum.com/.
There are not any requests for my images showing up in my apache
access_log where I use an image_tag. If I handroll the image ref
like:
img src=/images/icons/add.gif /
then it shows up fine. But if I use the image_tag helper like:
%= image_tag icons/add.gif %
..it gets rendered like:
img
I have the following code, but can't seem to get the class attribute
to show up in the generated select elements. I saw something about a
bug/patch. However, as am still learning RoR I didn't want to jump to
conclusions. Anyone see anything wrong:
%= f.date_select :expiration_date, :order =
Check your app's source. Look for anything dealing with asset_host. My
guess is something is prepending this to your image helper, and
asset_host will do that if you tell it to.
If you create a new Rails app, you'll be able to test this out by
making a controller and a view. On the view, just
1 - 100 of 121 matches
Mail list logo