how to update a div using ajax.updater() in rails..
<%= render :partial => "news" %>
every 10 seconds the above div has to be get refreshed...
i m stumped with this problem...
i dont know how to proceed it..
pls help
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~-
Hi
I have my application rails version 2.2.2 And this thing
map.resources :users, :only => [:index] do |u|
u.resources :categories
end
when I tried this in 2.3.2 rails I get what I required Means it only
cretes user index and then all other routes for categories ..But when I
tried it on
Actually I am not sure whats happenning I am using redmine and
installing plugins for that , Sometimes it seems that migration executes
( ie column and table ) get created but there is no entry in schema
table creating the issue.
SO I was trying to get over those issues.
Thanks & Regards
Saur
One of the reasons you want to use migrations is to avoid that kind of
error.
The schema_migrations table automatically keeps track of what
migrations have been applied and which have not.
You don't want to see errors for duplicate columns or duplicate
tables.
Have you been using migrations from
i am developing a search form where the user need to select the field to
be searched from a drop down.
could some one provide me pointers?.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Tom Dunn wrote:
> Hey I can't figure out how to change the stylesheet using a selection
> list. In my application I want to have an option for the user to change
> the look of the site by selecting a different layout from a list. All
> it would say is something like Layout 1, Layout 2, etc. and
Jim Burgess wrote:
> I wrote some tests for my controller which all worked as they should
> until I added http authentication using 'before_filter :authenticate'
Google (or use Google CodeSearch) and find login_as
Put it in your def setup, or in the top of each test:
login_as :bob
Such a m
Hey I can't figure out how to change the stylesheet using a selection
list. In my application I want to have an option for the user to change
the look of the site by selecting a different layout from a list. All
it would say is something like Layout 1, Layout 2, etc. and then it
would change to
Hi,
Are you looking at disabling the whole select menu or only few of the
options? The following link might have the one your looking into:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html
Best Wishes,
Saideep Annadatha
whol.ly
http://saideep.tk
On Fri, Aug 14,
> If I can give you a suggestion, worry about something when you
> actually have that problem, not before.
I don't know if I really agree with this. I'd rather head off a
problem far in advance of it ever becoming one, which is why I didn't
want to doom myself at the start. However, I do agre
>> app ever reaching their seismic proportions, but from what I've read
>> django is quite comparable to ruby and quite a bit faster.
>No. Django is comparable to *Rails*. Python is comparable to Ruby.
That's what I meant, just a little bit of a typo in not finishing it
with "on rails."
>Agr
Hi there,
Taking this a little step further, this is the pattern that our team
has been using.
http://www.robbyonrails.com/articles/2008/03/26/managing-seo-friendly-html-titles-with-rails
Good luck!
Robby
On Wed, Aug 12, 2009 at 7:06 AM, Philip
Gavrilos wrote:
>
> Philip Gavrilos wrote:
>>
>>
Jae Lee wrote:
> Hello all,
>
> I am trying to build a web app using RoR and wonder if there is any
> "user interface theme" you can recommend.
Use whatever works well. Rails has no particular expectations and makes
no particular demands of its HTML files.
Best,
--
Marnen Laibow-Koser
http:
<%=userinfo.select :profile,Profile.find(:all,:conditions => {:role_type
=> "AC"}).collect {|c| [ c.name, c.id ] },{},{:class => "companyselect"}
%>
how to disable the above select menu ...
i can able to disable the text field tag like below
<%=text_field_with_auto_complete :company_info, :name,:v
I am trying to manage the country names with i18n. I have a countries
table with the countries extension codes (us., co., ve., .bo. etc...)
and the yml files with their complete names:
en:
countries:
ar: Argentina
co: Colombia
.
I am trying to make a form with a select option for count
This action is triggered by pressing a button which executes a piece
of javascript.. the setup is done in a jquery document ready block of
code. It would highly surprise me if a prefetcher would trigger that
button.
As the action is triggered by a user action, I also don't think this
should give
Hello all,
I am trying to build a web app using RoR and wonder if there is any
"user interface theme" you can recommend. I found the following two
themes from RailsInside forum web, but I like to hear your opinions
first before my actually starting to use one of these.
http://github.com/fesplug
Quoting mjijackson :
>
> I'm upgrading from 2.1 to 2.3 and having a small problem with my
> models. It appears that when I use self.id now (say, from inside an
> instance method) I'm getting an array back instead of a string. For
> example, where under 2.1 I would get a "7" I'm now getting a ["7"
I have a view that has a swath of innerHTML in it. This innerHTML
resides in an HTML table, and it is updated every second by a
javascript timer which, through anX MLHttpRequest, reads a file of
JSON data which is written to the server by another application.
The upshot is, this table is live on
thanks everyone,
i have a solution pagination like twitter more button , not scrolling
pagination
write in my blog:
http://www.blogjava.net/fl1429/archive/2009/08/10/290573.html
On Sat, Aug 8, 2009 at 12:04 AM, E. Litwin wrote:
>
> There is a Railscast from last year that covers this topic:
>
Nicholas Wieland wrote:
> On Aug 12, 2009, at 4:06 PM, Philip Gavrilos wrote:
>
>> CUT
>
> There's even a better solution, search the API for content_for.
>
>ngw
Um, isn't that what he used?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.rub
On Aug 12, 2009, at 4:06 PM, Philip Gavrilos wrote:
> CUT
There's even a better solution, search the API for content_for.
ngw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
Marnen Laibow-Koser wrote:
[...]
> Don't save your no-reply e-mail address to the DB, then. Just leave the
> e-mail field blank in the DB, and use something like
>
> @user.email || default_email
>
> where you need it in your app. Right now, you are saving bogus data to
> your DB -- and what h
On Aug 11, 2009, at 11:43 AM, insect wrote:
>
> Hello!
>
> I am looking for a plugin or at least the way how to realize dynamic
> fields in a model.
>
> Why I need: I want to create a product catalog application, each type
> of product can have different set of fields (e.g. computer, mobile
> pho
Nicholas Wieland wrote:
> On Aug 11, 2009, at 6:21 AM, Marnen Laibow-Koser wrote:
>
>>> Also, I looked into django, the framework for python. I was sorta
>>> intrigued by python because that's what google uses and I believe
>>> yahoo as well. However, there is 0.00% chance of my little ol' web
On Aug 11, 2009, at 5:55 AM, AlwaysCharging wrote:
>
> I've read a ton of comparisons that compare one framework to another,
> and one language to another. There's so much conflicting advice out
> there that it's hard to know what is best. Did I make the right
> choice choosing Rails for my fi
On Aug 11, 2009, at 6:21 AM, Marnen Laibow-Koser wrote:
>> Also, I looked into django, the framework for python. I was sorta
>> intrigued by python because that's what google uses and I believe
>> yahoo as well. However, there is 0.00% chance of my little ol' web
>> app ever reaching their seis
Thanks for the quick reply , Cant I ignore errors only like if a column
is already present then move ahead, If a table is already present move
ahead.
Not ignoring all the errors.
Thanks & Regards
Saurabh
Steve Ross wrote:
> On Aug 13, 2009, at 5:11 PM, Saurabh Agarwal wrote:
>
>> migration.
On Aug 13, 2009, at 5:11 PM, Saurabh Agarwal wrote:
>
> Hi ,
>
> I am creating a migration but due to some error after it is ignoring
> whole migration.
>
> I want that if a column or table is already present ignore it and ove
> ahead with migration execution.
>
> How can i ignore errors in migr
Hi ,
I am creating a migration but due to some error after it is ignoring
whole migration.
I want that if a column or table is already present ignore it and ove
ahead with migration execution.
How can i ignore errors in migration normally column or table exist
migration.
Thanks & Regards
Saura
Simon Staton wrote:
> Ok I am editting google sketchups base and I have built a ruby plugin
> however I want an event to happen on close.
[...]
Then you might have better luck asking on the Sketchup development list
or the general Ruby list. This is the Rails list, and you don't appear
to be u
okie dokie
class Eqptattr < ActiveRecord::Base
belongs_to :site
belongs_to :equipment
validates_presence_of :ip
end
class Site < ActiveRecord::Base
has_many :eqptattrs, :dependent => :destroy
has_many :equipments, :through => :eqptattrs
Stephan Meier wrote:
> Marnen Laibow-Koser wrote:
>> Stephan Meier wrote:
>>> I simple want to set a default email address if the user has no one
>>> entered.
>>
>> How would this be of any use at all? If a user has no e-mail address,
>> just leave the field blank rather than polluting it with
Peter Ehrlich wrote:
> (posted this in Ruby mistakenly, reposting here)
> Hi
>
> A few things I'm wondering - if anyone can answer without too much
> trouble! (I know if I google enough I could learn what's going on..)
>
> I'm trying to make a string of url parameters, like this:
> "{unless c
Hey,
I have a small social network app and i am creating a kind of activity
stream for a user.
A user can post shouts and photos (models Shout and Photo).
These 2 models have a profile_id and place_id (where shout is posted
or photo is uploaded).
What i want to do now is get an array of these 2
(posted this in Ruby mistakenly, reposting here)
Hi
A few things I'm wondering - if anyone can answer without too much
trouble! (I know if I google enough I could learn what's going on..)
I'm trying to make a string of url parameters, like this:
"{unless category_name.nil?; 'category=' + cate
On Aug 13, 6:46 pm, Ryan King
wrote:
> As I go up in the array, i notice it's only incrementing by seconds, not
> by days. For example:
>
> irb(#):009:0> call_aves[30]
> => [Sat Aug 01 00:00:30 -0400 2009, 0]
>
> How do I get this to go up by the day, not the second?
Well if you use dates rather
Ruby Software Engineer- 6 month contract plus extensions, if an ideal
candidate, may be taken perm
Project Description:
The Programmer/Analyst is a Ruby on Rails developer participating in
high-profile technology projects that power the heart of our Client's
rewards program. Along with technical
On Aug 13, 2009, at 2:36 PM, Marnen Laibow-Koser wrote:
>
> Robert Walker wrote:
> [...]
>> Is there really a valid distinction between operators and methods
>> anymore?
>
> Not for all operators in Ruby. In some languages, not for *any*
> operator
>
>> Isn't the syntax essentially "syntactic su
On Aug 13, 7:48 pm, Craig Westmoreland
wrote:
> Hello,
>
> I run macosx - leopard, which ships with ruby 1.8.6.
> I noticed there is now ruby 1.8.7 so I tried to install it.
>
> I downloaded the zip file and opened Terminal.
> once i had 'cd'd to the correct directory, i tried to do ./configure
On Aug 13, 4:14 pm, Aljaz Fajmut
wrote:
> Hello
>
> I'm experiencing some problems using rails fixtures with unit tests.
>
> With my version of Ruby I have to define test with the following syntax:
>
> test 'some test' do
> assert..
> end
>
> instead of
>
> def test_some_test
> assert..
> e
Or you could use attr_readonly method (http://api.rubyonrails.org/
classes/ActiveRecord/Base.html#M002282).
On 12 août, 05:07, Jamal Soueidan
wrote:
> So I must do something like this then for now...
>
> @user = session[:user]
> @user.postal = params[:user][:postal]
> @user.birthday = params[:us
Hello,
I run macosx - leopard, which ships with ruby 1.8.6.
I noticed there is now ruby 1.8.7 so I tried to install it.
I downloaded the zip file and opened Terminal.
once i had 'cd'd to the correct directory, i tried to do ./configure
as the README file suggested. this threw out the configure:
Ugh, nevermind. Figured out what I was doing wrong.
On Aug 13, 2009, at 12:11 PM, mjijackson wrote:
> I'm upgrading from 2.1 to 2.3 and having a small problem with my
> models. It appears that when I use self.id now (say, from inside an
> instance method) I'm getting an array back instead of a s
We are almost finished with a premiere website and we are looking for
somebody who can help us finish the project. If you are interested
please contact me. Equity percentage is most desirable.
--~--~-~--~~~---~--~~
You received this message because you are subscr
I'm upgrading from 2.1 to 2.3 and having a small problem with my
models. It appears that when I use self.id now (say, from inside an
instance method) I'm getting an array back instead of a string. For
example, where under 2.1 I would get a "7" I'm now getting a ["7"].
Why the changed behavior?
--
Hi,
after upgrading Rails from 2.2.2 to 2.3.3 I realized that the handling
of request parameters has been changed regarding semicolons (that might
be due to the now integrated Rack interface). The following request
curl http://127.0.0.1:3000/polls/initiate -d 'hallo=1;2'
used to result in
Para
Robert Walker wrote:
[...]
> Is there really a valid distinction between operators and methods
> anymore?
Not for all operators in Ruby. In some languages, not for *any*
operator
> Isn't the syntax essentially "syntactic sugar" allowing for
> simplified use of some of the methods?
Yup. An
Hi Guys,
I'm really new to rails, so I apologize if this is a dumb question.
I'm using the autocomplete plugin to search record titles. When a user
selects the appropriate title, and clicks "go" I'd like them to be
brought right to that title. If they enter a title which currently
doesn't have a
Chris Habgood wrote:
> Is the any way to get more descriptive of the errors associated with
> the associated model?
>
> I have a site model that has:
>
> validates_associated :Eqptattrs
>
> and below is the error generated from the associated model.
>
>
> There were problems with the followin
Seems I've seen some discussion in the past about something not right
on the server side with ImageMagick when this is happening, but I cant
find it now that I'm having the problem.
Any advice?
--~--~-~--~~~---~--~~
You received this message because you are subscri
>
> How do I get this to go up by the day, not the second?
Change your grouping function in the SQL, rather than
DATE(calls.start_time_stamp)
can you use just the day of the month portion? Perhaps
DAYOFMONTH(calls.start_time_stamp) (or just
DAY(calls.start_time_stamp))
as long as you're se
pharrington wrote:
> On Aug 13, 3:06�pm, Siddharth Ravichandran s.net> wrote:
>>
>> Thank you again.
>> --
>> Posted viahttp://www.ruby-forum.com/.
>
> Slow down and think. You can store files in the local filesystem in
> places other than your Rails apps /public directory. hitch linked you
> to
Is the any way to get more descriptive of the errors associated with
the associated model?
I have a site model that has:
validates_associated :Eqptattrs
and below is the error generated from the associated model.
There were problems with the following fields:
* Eqptattrs is invalid
--~--
Robert Walker wrote:
> Aljaz Fajmut wrote:
>> With my version of Ruby I have to define test with the following syntax:
>>
>> test 'some test' do
>> assert..
>> end
>
> What do you mean by this? I don't think the Ruby version should have
> anything to do with this. What testing framework are y
Sorry, when I tried it the window disappeared so quick I did not think it
was working. DOH.
On Thu, Aug 13, 2009 at 1:41 PM, Marnen Laibow-Koser <
rails-mailing-l...@andreas-s.net> wrote:
>
> Chris Habgood wrote:
> > Ok, I found this but it is trying to go to a web address and not launch
> > a
>
On Aug 13, 3:06 pm, Siddharth Ravichandran wrote:
> hitch wrote:
> > You probably do not want to store the files in public. Store them
> > somewhere else if you need to protect them with passwords.
> > You can easily upload them to Amazon's S3 with attachment_fu, just be
> > sure to set :s3_acces
hitch wrote:
> You probably do not want to store the files in public. Store them
> somewhere else if you need to protect them with passwords.
> You can easily upload them to Amazon's S3 with attachment_fu, just be
> sure to set :s3_access to an appropriate value
> And you can use send_data with :d
Aljaz Fajmut wrote:
> With my version of Ruby I have to define test with the following syntax:
>
> test 'some test' do
> assert..
> end
What do you mean by this? I don't think the Ruby version should have
anything to do with this. What testing framework are you using
(Test::Unit, Soulda, etc
Marnen Laibow-Koser wrote:
> Paolo Montrasio wrote:
> [...]
>> However if a legitimate user tries to access your service with two
>> browsers at the same time, s/he'll may end up a little upset.
>
> Yes, this is one of the frustrating scenarios I was thinking of -- and
> of course there are ple
My solution will be a careful one. I will log IP address, Time logged
in, and account name. If I see more than 5 unique IP addresses using
the same account within x time period, I'll mark the user as suspect and
possibly send them a warning, if it worsens.
I think this is a safer way to go a
Marnen Laibow-Koser wrote:
> Stephan Meier wrote:
>> I simple want to set a default email address if the user has no one
>> entered.
>
> How would this be of any use at all? If a user has no e-mail address,
> just leave the field blank rather than polluting it with bogus data.
> Or is there so
Stephan Meier wrote:
> I simple want to set a default email address if the user has no one
> entered.
ok, i solved it with a simple before_save callback... and do the check
inside the model.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You re
Chris Habgood wrote:
> Ok, I found this but it is trying to go to a web address and not launch
> a
> telnet: Ideas?
Why don't you actually try Sazima's suggestion (which is the proper way
to do it)?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www
On Aug 13, 2:29 pm, Stephan Meier
wrote:
> I simple want to set a default email address if the user has no one
> entered.
> --
> Posted viahttp://www.ruby-forum.com/.
ok!
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html
does anything on this page seem like
Stephan Meier wrote:
> I simple want to set a default email address if the user has no one
> entered.
How would this be of any use at all? If a user has no e-mail address,
just leave the field blank rather than polluting it with bogus data.
Or is there something I don't understand here?
Best,
Paolo Montrasio wrote:
[...]
> However if a legitimate user tries to access your service with two
> browsers at the same time, s/he'll may end up a little upset.
Yes, this is one of the frustrating scenarios I was thinking of -- and
of course there are plenty of legitimate reasons to do so.
Th
I simple want to set a default email address if the user has no one
entered.
--
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 gr
Ok, I found this but it is trying to go to a web address and not launch a
telnet: Ideas?
<% require 'win32ole' %>
<% shell = WIN32OLE.new('Shell.Application') %>
<%= link_to "#{eqpt.name}", "shell.ShellExecute(\"telnet.exe #{eq.ip}\",
'c:\my_rails_app\script\server', '', 'open', 1)" %> - <%=
eq.
On Aug 13, 2:14 pm, Stephan Meier
wrote:
> Hey all,
>
> im not sure where to set a default value if a textfield is empty?
>
> For now i do it in the controller, and check if the submitted parameter
> is blank.
> But this seems not to be the best solution...
>
> Thanks for your help!
> --
> Posted
Conrad
Thanks. Was afraid it might have been how the Leopard Ruby was set up.
Not familiar with dyld. Did have Ruby installed via MacPorts but
ditched it when I upgraded to Leopard. Might be time to bite the
bullet and kill two birds with one stone and install multiple versions
of ruby while I'm a
Alpha Blue wrote:
> Can anyone provide me with a good article, screencast, or source on how
> to restrict multiple logins with rails? I'm using Restful
> Authentication with Acts As State Machine and have my login system
> configured with observers, activation keys, etc.
>
> I'm just trying to m
Hey all,
im not sure where to set a default value if a textfield is empty?
For now i do it in the controller, and check if the submitted parameter
is blank.
But this seems not to be the best solution...
Thanks for your help!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~--
You probably do not want to store the files in public. Store them
somewhere else if you need to protect them with passwords.
You can easily upload them to Amazon's S3 with attachment_fu, just be
sure to set :s3_access to an appropriate value
And you can use send_data with :disposition => 'inline'
On Aug 13, 1:14 pm, Marnen Laibow-Koser wrote:
> Alpha Blue wrote:
> > Hi Marnen,
>
> > Well I run a subscription service on my site that after week 4 will be
> > activated. I just want to make sure that someone doesn't give their
> > logins to 30 of their friends so that they can use the subscr
Ar Chron wrote:
> Ryan King wrote:
>> I'm trying to generate a report for the average number of calls a person
>> makes per-day. The following generates the correct list, but if a user
>> didn't make any calls a certain day it doesn't show up.
>>
>
> Why would a day with no calls appear? Its ju
On Thu, Aug 13, 2009 at 10:02 AM, shusseina wrote:
>
> Imagine I have a model called blog and I then run the following
> command to create a controller for it.
>
> ruby script/generate controller Blogs index
>
> At some later point I want to create a 'new' page to submit blogs. Is
> there a reco
Alpha Blue wrote:
> Hi Marnen,
>
> Well I run a subscription service on my site that after week 4 will be
> activated. I just want to make sure that someone doesn't give their
> logins to 30 of their friends so that they can use the subscription for
> free and all 30 people logged in simultan
On Thu, Aug 13, 2009 at 9:36 AM, ctagg wrote:
>
> I'm using Leopard version of Ruby 1.8.6 and Have OpenSSL installed via
> DarwinPorts (openssl @0.9.8g_0)
>
> However this isn't the version my Ruby installed is using:
>
> $ irb
> irb(main):001:0> require 'openssl'
> => true
> irb(main):002:0> Ope
Imagine I have a model called blog and I then run the following
command to create a controller for it.
ruby script/generate controller Blogs index
At some later point I want to create a 'new' page to submit blogs. Is
there a recommended way for doing this? Should I simply create the
file app/
If this is a link_to_remote then its a little different. What is it
that you want to happen when you click the link? If you are new to
Rails I find it much easier to first get a normal link_to working then
start adding ajax to the views.
On Aug 13, 9:24 am, Pete Moran
wrote:
> heimdull wrote:
>
Ryan King wrote:
> I'm trying to generate a report for the average number of calls a person
> makes per-day. The following generates the correct list, but if a user
> didn't make any calls a certain day it doesn't show up.
>
Why would a day with no calls appear? Its just reporting the DB data i
Hey,
Thank you so much!
It worked
SOrry for late answer but forgot to answer!
THANK YOU!
On Aug 1, 12:44 am, Josh wrote:
> I took a look at my own code where I test implemented this and
> realized I have the same problem.
>
> After watching SQL in the log and playing around in script/console
On Wed, Aug 12, 2009 at 10:25 PM, Ruby on
Rails wrote:
>
> Thanks Fred ,
>
> I am not getting that concept of ruby . We have nil.object_id is 4
> ,are they fix for every value, i am not sure for this .
No, not in general, and the real story is rather dependent on the
particular Ruby implementati
I'm using Leopard version of Ruby 1.8.6 and Have OpenSSL installed via
DarwinPorts (openssl @0.9.8g_0)
However this isn't the version my Ruby installed is using:
$ irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> OpenSSL::OPENSSL_VERSION
=> "OpenSSL 0.9.7l 28 Sep 2006"
irb(main):0
On Wed, Aug 12, 2009 at 2:06 PM, brianp wrote:
>
> Hey Again,
>
> So I'm still working through AWDwR and I've just completed the
> authentication section for users. I understand the idea behind salts
> and general authentication. The part I feel I'm missing is when the
> first salt is created and
Hey Pete,
On the latest 2-3-stable I found I had to reverse the last defaults
connect statements in my routing. They now read:
# Rails default routes
#
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'
map.connect ':controller/:action'
That from this
heimdull wrote:
> if you edit something it should be a GET request and then POST it to
> the update action right? You are better off just removing the default
> routes and rolling your own...
>
> like map.resources :venderlocations
>
> Or is there something I'm missing here...
Its a POST as I a
if you edit something it should be a GET request and then POST it to
the update action right? You are better off just removing the default
routes and rolling your own...
like map.resources :venderlocations
Or is there something I'm missing here...
--~--~-~--~~~---~--~
I have tried WEBrick.
[r...@localhost ltw]# ruby script/server WEBrick
=> Booting WEBrick
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-08-13 23:55:14] INFO WEBrick 1.3.1
[2009-08-13 23:55:14] INFO ruby 1.8.
Hi,
> Problem occurs when I "Add more Parent". When the next parent is
> added, I see one parent with mangled child form. And I think that is
> because the child form goes through the helper method twice - one
> method is the "add_parent_link" shown above and the other is
> "add_child_link" (no
Ro wrote:
> Same problem here!!
Arrgh! I'm also having the same problem! Can someone point me in the
right direction of a solution?
It's so frustrating to get this far with rails, but not be able to
finish the "Getting Started" Tutorial!
I am using Rails 2.3.2 and Ruby 1.8.6. The tutorial doe
Matt Jones wrote:
> @errors is an instance variable on the model - I doubt you're
> accessing that from the controller...
>
> I'm also not clear what's wrong with @model.errors.each - it gets you
> exactly the same results as iterating with each_key on the underlying
> array...
>
> --Matt Jones
I have a recursive relationship between models (Question model appears
on multiple levels of the hierarchy):
Test
--> Questions
---> (has_one) Remediation
> (has_many) Remediation_Questions
-> (has_one) Question
The problem is rails is not building the form correc
Just downloaded a barebones project using git and I'm charged with doing
a design for it. First time using HAML and SASS. Looking forward to
it.
Booted up Webrick and went to load the page and none of the js or css
showed up. Keep getting these errors for all files in the public
folder:
Actio
solved this
with my div tag under the javascript block, the display:none; css would
not work. Moving the div above the javascript allowed this to work.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are su
Hi Alpha,
I am just sharing some thoughts i am not sure how much it will help
you.
1. are you using database session for log in purpose in that case you
can check from database whether this guy is already log in or not an
restrict the person if someone is already logged in or expire the
session o
Rails List wrote:
> I do have the same question since long..luckily you asked. I'll watch
> this thread
I found something which worked - if I did :controller =>
'vendorlocation' as opposed to :controller => 'vendorlocations' it
seemed to do the right thing...
/vendorlocation/edit/:id
Is stra
Hello
I'm experiencing some problems using rails fixtures with unit tests.
With my version of Ruby I have to define test with the following syntax:
test 'some test' do
assert..
end
instead of
def test_some_test
assert..
end
If I try to include/load the fixtures by using:
fixtures :stor
Rails List wrote:
> Thanks for all the answers. I am yet to use source control. Although I
> am sure source control is useful, i haven't found ( or i didn't try hard
> enough :-)) any simple tutorial for learning to use git.
Source control isn't just useful. It saves lives. And RAILS_ROOT/db
1 - 100 of 155 matches
Mail list logo